Class Finding

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

    public final class Finding
    extends com.google.protobuf.GeneratedMessageV3
    implements FindingOrBuilder
     Represents a piece of potentially sensitive content.
     
    Protobuf type google.privacy.dlp.v2.Finding
    See Also:
    Serialized Form
    • 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
      • getName

        public String getName()
         Resource name in format
         projects/{project}/locations/{location}/findings/{finding} Populated only
         when viewing persisted findings.
         
        string name = 14;
        Specified by:
        getName in interface FindingOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Resource name in format
         projects/{project}/locations/{location}/findings/{finding} Populated only
         when viewing persisted findings.
         
        string name = 14;
        Specified by:
        getNameBytes in interface FindingOrBuilder
        Returns:
        The bytes for name.
      • 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.
         Provided if `include_quote` is true and the finding is
         less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes
         in length, the quote may be omitted.
         
        string quote = 1;
        Specified by:
        getQuote in interface FindingOrBuilder
        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.
         Provided if `include_quote` is true and the finding is
         less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes
         in length, the quote may be omitted.
         
        string quote = 1;
        Specified by:
        getQuoteBytes in interface FindingOrBuilder
        Returns:
        The bytes for quote.
      • hasInfoType

        public boolean hasInfoType()
         The type of content that might have been found.
         Provided if `excluded_types` is false.
         
        .google.privacy.dlp.v2.InfoType info_type = 2;
        Specified by:
        hasInfoType in interface FindingOrBuilder
        Returns:
        Whether the infoType field is set.
      • getInfoType

        public InfoType getInfoType()
         The type of content that might have been found.
         Provided if `excluded_types` is false.
         
        .google.privacy.dlp.v2.InfoType info_type = 2;
        Specified by:
        getInfoType in interface FindingOrBuilder
        Returns:
        The infoType.
      • getInfoTypeOrBuilder

        public InfoTypeOrBuilder getInfoTypeOrBuilder()
         The type of content that might have been found.
         Provided if `excluded_types` is false.
         
        .google.privacy.dlp.v2.InfoType info_type = 2;
        Specified by:
        getInfoTypeOrBuilder in interface FindingOrBuilder
      • getLikelihoodValue

        public int getLikelihoodValue()
         Confidence of how likely it is that the `info_type` is correct.
         
        .google.privacy.dlp.v2.Likelihood likelihood = 3;
        Specified by:
        getLikelihoodValue in interface FindingOrBuilder
        Returns:
        The enum numeric value on the wire for likelihood.
      • getLikelihood

        public Likelihood getLikelihood()
         Confidence of how likely it is that the `info_type` is correct.
         
        .google.privacy.dlp.v2.Likelihood likelihood = 3;
        Specified by:
        getLikelihood in interface FindingOrBuilder
        Returns:
        The likelihood.
      • hasLocation

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

        public Location getLocation()
         Where the content was found.
         
        .google.privacy.dlp.v2.Location location = 4;
        Specified by:
        getLocation in interface FindingOrBuilder
        Returns:
        The location.
      • hasCreateTime

        public boolean hasCreateTime()
         Timestamp when finding was detected.
         
        .google.protobuf.Timestamp create_time = 6;
        Specified by:
        hasCreateTime in interface FindingOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Timestamp when finding was detected.
         
        .google.protobuf.Timestamp create_time = 6;
        Specified by:
        getCreateTime in interface FindingOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Timestamp when finding was detected.
         
        .google.protobuf.Timestamp create_time = 6;
        Specified by:
        getCreateTimeOrBuilder in interface FindingOrBuilder
      • hasQuoteInfo

        public boolean hasQuoteInfo()
         Contains data parsed from quotes. Only populated if include_quote was set
         to true and a supported infoType was requested. Currently supported
         infoTypes: DATE, DATE_OF_BIRTH and TIME.
         
        .google.privacy.dlp.v2.QuoteInfo quote_info = 7;
        Specified by:
        hasQuoteInfo in interface FindingOrBuilder
        Returns:
        Whether the quoteInfo field is set.
      • getQuoteInfo

        public QuoteInfo getQuoteInfo()
         Contains data parsed from quotes. Only populated if include_quote was set
         to true and a supported infoType was requested. Currently supported
         infoTypes: DATE, DATE_OF_BIRTH and TIME.
         
        .google.privacy.dlp.v2.QuoteInfo quote_info = 7;
        Specified by:
        getQuoteInfo in interface FindingOrBuilder
        Returns:
        The quoteInfo.
      • getQuoteInfoOrBuilder

        public QuoteInfoOrBuilder getQuoteInfoOrBuilder()
         Contains data parsed from quotes. Only populated if include_quote was set
         to true and a supported infoType was requested. Currently supported
         infoTypes: DATE, DATE_OF_BIRTH and TIME.
         
        .google.privacy.dlp.v2.QuoteInfo quote_info = 7;
        Specified by:
        getQuoteInfoOrBuilder in interface FindingOrBuilder
      • getResourceName

        public String getResourceName()
         The job that stored the finding.
         
        string resource_name = 8 [(.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface FindingOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         The job that stored the finding.
         
        string resource_name = 8 [(.google.api.resource_reference) = { ... }
        Specified by:
        getResourceNameBytes in interface FindingOrBuilder
        Returns:
        The bytes for resourceName.
      • getTriggerName

        public String getTriggerName()
         Job trigger name, if applicable, for this finding.
         
        string trigger_name = 9 [(.google.api.resource_reference) = { ... }
        Specified by:
        getTriggerName in interface FindingOrBuilder
        Returns:
        The triggerName.
      • getTriggerNameBytes

        public com.google.protobuf.ByteString getTriggerNameBytes()
         Job trigger name, if applicable, for this finding.
         
        string trigger_name = 9 [(.google.api.resource_reference) = { ... }
        Specified by:
        getTriggerNameBytes in interface FindingOrBuilder
        Returns:
        The bytes for triggerName.
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: FindingOrBuilder
         The labels associated with this `Finding`.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 10;
        Specified by:
        getLabelsCount in interface FindingOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         The labels associated with this `Finding`.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 10;
        Specified by:
        containsLabels in interface FindingOrBuilder
      • getLabelsMap

        public Map<String,​String> getLabelsMap()
         The labels associated with this `Finding`.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 10;
        Specified by:
        getLabelsMap in interface FindingOrBuilder
      • getLabelsOrDefault

        public String getLabelsOrDefault​(String key,
                                         String defaultValue)
         The labels associated with this `Finding`.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 10;
        Specified by:
        getLabelsOrDefault in interface FindingOrBuilder
      • getLabelsOrThrow

        public String getLabelsOrThrow​(String key)
         The labels associated with this `Finding`.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 10;
        Specified by:
        getLabelsOrThrow in interface FindingOrBuilder
      • hasJobCreateTime

        public boolean hasJobCreateTime()
         Time the job started that produced this finding.
         
        .google.protobuf.Timestamp job_create_time = 11;
        Specified by:
        hasJobCreateTime in interface FindingOrBuilder
        Returns:
        Whether the jobCreateTime field is set.
      • getJobCreateTime

        public com.google.protobuf.Timestamp getJobCreateTime()
         Time the job started that produced this finding.
         
        .google.protobuf.Timestamp job_create_time = 11;
        Specified by:
        getJobCreateTime in interface FindingOrBuilder
        Returns:
        The jobCreateTime.
      • getJobCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getJobCreateTimeOrBuilder()
         Time the job started that produced this finding.
         
        .google.protobuf.Timestamp job_create_time = 11;
        Specified by:
        getJobCreateTimeOrBuilder in interface FindingOrBuilder
      • getJobName

        public String getJobName()
         The job that stored the finding.
         
        string job_name = 13 [(.google.api.resource_reference) = { ... }
        Specified by:
        getJobName in interface FindingOrBuilder
        Returns:
        The jobName.
      • getJobNameBytes

        public com.google.protobuf.ByteString getJobNameBytes()
         The job that stored the finding.
         
        string job_name = 13 [(.google.api.resource_reference) = { ... }
        Specified by:
        getJobNameBytes in interface FindingOrBuilder
        Returns:
        The bytes for jobName.
      • getFindingId

        public String getFindingId()
         The unique finding id.
         
        string finding_id = 15;
        Specified by:
        getFindingId in interface FindingOrBuilder
        Returns:
        The findingId.
      • getFindingIdBytes

        public com.google.protobuf.ByteString getFindingIdBytes()
         The unique finding id.
         
        string finding_id = 15;
        Specified by:
        getFindingIdBytes in interface FindingOrBuilder
        Returns:
        The bytes for findingId.
      • 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 Finding parseFrom​(ByteBuffer data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public static Finding getDefaultInstance()
      • parser

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

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