Class DataProfileFinding.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataProfileFinding.Builder>
com.google.privacy.dlp.v2.DataProfileFinding.Builder
All Implemented Interfaces:
DataProfileFindingOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DataProfileFinding

public static final class DataProfileFinding.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataProfileFinding.Builder> 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
  • 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.Builder<DataProfileFinding.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.GeneratedMessage.Builder<DataProfileFinding.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.GeneratedMessage.Builder<DataProfileFinding.Builder>
    • getDefaultInstanceForType

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

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

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

      public DataProfileFinding.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DataProfileFinding.Builder>
    • mergeFrom

    • isInitialized

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

      public DataProfileFinding.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<DataProfileFinding.Builder>
      Throws:
      IOException
    • 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.
    • setQuote

      public DataProfileFinding.Builder setQuote(String value)
       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;
      Parameters:
      value - The quote to set.
      Returns:
      This builder for chaining.
    • clearQuote

      public DataProfileFinding.Builder clearQuote()
       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;
      Returns:
      This builder for chaining.
    • setQuoteBytes

      public DataProfileFinding.Builder setQuoteBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for quote to set.
      Returns:
      This builder for chaining.
    • 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.
    • setInfotype

      public DataProfileFinding.Builder setInfotype(InfoType value)
       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;
    • setInfotype

      public DataProfileFinding.Builder setInfotype(InfoType.Builder builderForValue)
       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;
    • mergeInfotype

      public DataProfileFinding.Builder mergeInfotype(InfoType value)
       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;
    • clearInfotype

      public DataProfileFinding.Builder clearInfotype()
       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;
    • getInfotypeBuilder

      public InfoType.Builder getInfotypeBuilder()
       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;
    • 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.
    • setQuoteInfo

      public DataProfileFinding.Builder setQuoteInfo(QuoteInfo value)
       Contains data parsed from quotes. Currently supported infoTypes: DATE,
       DATE_OF_BIRTH, and TIME.
       
      .google.privacy.dlp.v2.QuoteInfo quote_info = 3;
    • setQuoteInfo

      public DataProfileFinding.Builder setQuoteInfo(QuoteInfo.Builder builderForValue)
       Contains data parsed from quotes. Currently supported infoTypes: DATE,
       DATE_OF_BIRTH, and TIME.
       
      .google.privacy.dlp.v2.QuoteInfo quote_info = 3;
    • mergeQuoteInfo

      public DataProfileFinding.Builder mergeQuoteInfo(QuoteInfo value)
       Contains data parsed from quotes. Currently supported infoTypes: DATE,
       DATE_OF_BIRTH, and TIME.
       
      .google.privacy.dlp.v2.QuoteInfo quote_info = 3;
    • clearQuoteInfo

      public DataProfileFinding.Builder clearQuoteInfo()
       Contains data parsed from quotes. Currently supported infoTypes: DATE,
       DATE_OF_BIRTH, and TIME.
       
      .google.privacy.dlp.v2.QuoteInfo quote_info = 3;
    • getQuoteInfoBuilder

      public QuoteInfo.Builder getQuoteInfoBuilder()
       Contains data parsed from quotes. Currently supported infoTypes: DATE,
       DATE_OF_BIRTH, and TIME.
       
      .google.privacy.dlp.v2.QuoteInfo quote_info = 3;
    • 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.
    • setDataProfileResourceName

      public DataProfileFinding.Builder setDataProfileResourceName(String value)
       Resource name of the data profile associated with the finding.
       
      string data_profile_resource_name = 4;
      Parameters:
      value - The dataProfileResourceName to set.
      Returns:
      This builder for chaining.
    • clearDataProfileResourceName

      public DataProfileFinding.Builder clearDataProfileResourceName()
       Resource name of the data profile associated with the finding.
       
      string data_profile_resource_name = 4;
      Returns:
      This builder for chaining.
    • setDataProfileResourceNameBytes

      public DataProfileFinding.Builder setDataProfileResourceNameBytes(com.google.protobuf.ByteString value)
       Resource name of the data profile associated with the finding.
       
      string data_profile_resource_name = 4;
      Parameters:
      value - The bytes for dataProfileResourceName to set.
      Returns:
      This builder for chaining.
    • 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.
    • setFindingId

      public DataProfileFinding.Builder setFindingId(String value)
       A unique identifier for the finding.
       
      string finding_id = 5;
      Parameters:
      value - The findingId to set.
      Returns:
      This builder for chaining.
    • clearFindingId

      public DataProfileFinding.Builder clearFindingId()
       A unique identifier for the finding.
       
      string finding_id = 5;
      Returns:
      This builder for chaining.
    • setFindingIdBytes

      public DataProfileFinding.Builder setFindingIdBytes(com.google.protobuf.ByteString value)
       A unique identifier for the finding.
       
      string finding_id = 5;
      Parameters:
      value - The bytes for findingId to set.
      Returns:
      This builder for chaining.
    • 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.
    • setTimestamp

      public DataProfileFinding.Builder setTimestamp(com.google.protobuf.Timestamp value)
       Timestamp when the finding was detected.
       
      .google.protobuf.Timestamp timestamp = 6;
    • setTimestamp

      public DataProfileFinding.Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp when the finding was detected.
       
      .google.protobuf.Timestamp timestamp = 6;
    • mergeTimestamp

      public DataProfileFinding.Builder mergeTimestamp(com.google.protobuf.Timestamp value)
       Timestamp when the finding was detected.
       
      .google.protobuf.Timestamp timestamp = 6;
    • clearTimestamp

      public DataProfileFinding.Builder clearTimestamp()
       Timestamp when the finding was detected.
       
      .google.protobuf.Timestamp timestamp = 6;
    • getTimestampBuilder

      public com.google.protobuf.Timestamp.Builder getTimestampBuilder()
       Timestamp when the finding was detected.
       
      .google.protobuf.Timestamp timestamp = 6;
    • 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.
    • setLocation

       Where the content was found.
       
      .google.privacy.dlp.v2.DataProfileFindingLocation location = 7;
    • setLocation

      public DataProfileFinding.Builder setLocation(DataProfileFindingLocation.Builder builderForValue)
       Where the content was found.
       
      .google.privacy.dlp.v2.DataProfileFindingLocation location = 7;
    • mergeLocation

       Where the content was found.
       
      .google.privacy.dlp.v2.DataProfileFindingLocation location = 7;
    • clearLocation

      public DataProfileFinding.Builder clearLocation()
       Where the content was found.
       
      .google.privacy.dlp.v2.DataProfileFindingLocation location = 7;
    • getLocationBuilder

      public DataProfileFindingLocation.Builder getLocationBuilder()
       Where the content was found.
       
      .google.privacy.dlp.v2.DataProfileFindingLocation location = 7;
    • 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.
    • setResourceVisibilityValue

      public DataProfileFinding.Builder setResourceVisibilityValue(int value)
       How broadly a resource has been shared.
       
      .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 8;
      Parameters:
      value - The enum numeric value on the wire for resourceVisibility to set.
      Returns:
      This builder for chaining.
    • 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.
    • setResourceVisibility

      public DataProfileFinding.Builder setResourceVisibility(ResourceVisibility value)
       How broadly a resource has been shared.
       
      .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 8;
      Parameters:
      value - The resourceVisibility to set.
      Returns:
      This builder for chaining.
    • clearResourceVisibility

      public DataProfileFinding.Builder clearResourceVisibility()
       How broadly a resource has been shared.
       
      .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 8;
      Returns:
      This builder for chaining.
    • 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.
    • setFullResourceName

      public DataProfileFinding.Builder setFullResourceName(String value)
       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;
      Parameters:
      value - The fullResourceName to set.
      Returns:
      This builder for chaining.
    • clearFullResourceName

      public DataProfileFinding.Builder clearFullResourceName()
       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;
      Returns:
      This builder for chaining.
    • setFullResourceNameBytes

      public DataProfileFinding.Builder setFullResourceNameBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for fullResourceName to set.
      Returns:
      This builder for chaining.
    • 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.
    • setDataSourceType

      public DataProfileFinding.Builder setDataSourceType(DataSourceType value)
       The type of the resource that was profiled.
       
      .google.privacy.dlp.v2.DataSourceType data_source_type = 10;
    • setDataSourceType

      public DataProfileFinding.Builder setDataSourceType(DataSourceType.Builder builderForValue)
       The type of the resource that was profiled.
       
      .google.privacy.dlp.v2.DataSourceType data_source_type = 10;
    • mergeDataSourceType

      public DataProfileFinding.Builder mergeDataSourceType(DataSourceType value)
       The type of the resource that was profiled.
       
      .google.privacy.dlp.v2.DataSourceType data_source_type = 10;
    • clearDataSourceType

      public DataProfileFinding.Builder clearDataSourceType()
       The type of the resource that was profiled.
       
      .google.privacy.dlp.v2.DataSourceType data_source_type = 10;
    • getDataSourceTypeBuilder

      public DataSourceType.Builder getDataSourceTypeBuilder()
       The type of the resource that was profiled.
       
      .google.privacy.dlp.v2.DataSourceType data_source_type = 10;
    • 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