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
     A Finding resource represents a vulnerability instance identified during a
     ScanRun.
     
    Protobuf type google.cloud.websecurityscanner.v1alpha.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()
      • internalGetFieldAccessorTable

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

        public String getName()
         The resource name of the Finding. The name follows the format of
         'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
         The finding IDs are generated by the system.
         
        string name = 1;
        Specified by:
        getName in interface FindingOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The resource name of the Finding. The name follows the format of
         'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
         The finding IDs are generated by the system.
         
        string name = 1;
        Specified by:
        getNameBytes in interface FindingOrBuilder
        Returns:
        The bytes for name.
      • getFindingTypeValue

        public int getFindingTypeValue()
         The type of the Finding.
         
        .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2;
        Specified by:
        getFindingTypeValue in interface FindingOrBuilder
        Returns:
        The enum numeric value on the wire for findingType.
      • getFindingType

        public Finding.FindingType getFindingType()
         The type of the Finding.
         
        .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2;
        Specified by:
        getFindingType in interface FindingOrBuilder
        Returns:
        The findingType.
      • getHttpMethod

        public String getHttpMethod()
         The http method of the request that triggered the vulnerability, in
         uppercase.
         
        string http_method = 3;
        Specified by:
        getHttpMethod in interface FindingOrBuilder
        Returns:
        The httpMethod.
      • getHttpMethodBytes

        public com.google.protobuf.ByteString getHttpMethodBytes()
         The http method of the request that triggered the vulnerability, in
         uppercase.
         
        string http_method = 3;
        Specified by:
        getHttpMethodBytes in interface FindingOrBuilder
        Returns:
        The bytes for httpMethod.
      • getFuzzedUrl

        public String getFuzzedUrl()
         The URL produced by the server-side fuzzer and used in the request that
         triggered the vulnerability.
         
        string fuzzed_url = 4;
        Specified by:
        getFuzzedUrl in interface FindingOrBuilder
        Returns:
        The fuzzedUrl.
      • getFuzzedUrlBytes

        public com.google.protobuf.ByteString getFuzzedUrlBytes()
         The URL produced by the server-side fuzzer and used in the request that
         triggered the vulnerability.
         
        string fuzzed_url = 4;
        Specified by:
        getFuzzedUrlBytes in interface FindingOrBuilder
        Returns:
        The bytes for fuzzedUrl.
      • getBody

        public String getBody()
         The body of the request that triggered the vulnerability.
         
        string body = 5;
        Specified by:
        getBody in interface FindingOrBuilder
        Returns:
        The body.
      • getBodyBytes

        public com.google.protobuf.ByteString getBodyBytes()
         The body of the request that triggered the vulnerability.
         
        string body = 5;
        Specified by:
        getBodyBytes in interface FindingOrBuilder
        Returns:
        The bytes for body.
      • getDescription

        public String getDescription()
         The description of the vulnerability.
         
        string description = 6;
        Specified by:
        getDescription in interface FindingOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         The description of the vulnerability.
         
        string description = 6;
        Specified by:
        getDescriptionBytes in interface FindingOrBuilder
        Returns:
        The bytes for description.
      • getReproductionUrl

        public String getReproductionUrl()
         The URL containing human-readable payload that user can leverage to
         reproduce the vulnerability.
         
        string reproduction_url = 7;
        Specified by:
        getReproductionUrl in interface FindingOrBuilder
        Returns:
        The reproductionUrl.
      • getReproductionUrlBytes

        public com.google.protobuf.ByteString getReproductionUrlBytes()
         The URL containing human-readable payload that user can leverage to
         reproduce the vulnerability.
         
        string reproduction_url = 7;
        Specified by:
        getReproductionUrlBytes in interface FindingOrBuilder
        Returns:
        The bytes for reproductionUrl.
      • getFrameUrl

        public String getFrameUrl()
         If the vulnerability was originated from nested IFrame, the immediate
         parent IFrame is reported.
         
        string frame_url = 8;
        Specified by:
        getFrameUrl in interface FindingOrBuilder
        Returns:
        The frameUrl.
      • getFrameUrlBytes

        public com.google.protobuf.ByteString getFrameUrlBytes()
         If the vulnerability was originated from nested IFrame, the immediate
         parent IFrame is reported.
         
        string frame_url = 8;
        Specified by:
        getFrameUrlBytes in interface FindingOrBuilder
        Returns:
        The bytes for frameUrl.
      • getFinalUrl

        public String getFinalUrl()
         The URL where the browser lands when the vulnerability is detected.
         
        string final_url = 9;
        Specified by:
        getFinalUrl in interface FindingOrBuilder
        Returns:
        The finalUrl.
      • getFinalUrlBytes

        public com.google.protobuf.ByteString getFinalUrlBytes()
         The URL where the browser lands when the vulnerability is detected.
         
        string final_url = 9;
        Specified by:
        getFinalUrlBytes in interface FindingOrBuilder
        Returns:
        The bytes for finalUrl.
      • getTrackingId

        public String getTrackingId()
         The tracking ID uniquely identifies a vulnerability instance across
         multiple ScanRuns.
         
        string tracking_id = 10;
        Specified by:
        getTrackingId in interface FindingOrBuilder
        Returns:
        The trackingId.
      • getTrackingIdBytes

        public com.google.protobuf.ByteString getTrackingIdBytes()
         The tracking ID uniquely identifies a vulnerability instance across
         multiple ScanRuns.
         
        string tracking_id = 10;
        Specified by:
        getTrackingIdBytes in interface FindingOrBuilder
        Returns:
        The bytes for trackingId.
      • hasOutdatedLibrary

        public boolean hasOutdatedLibrary()
         An addon containing information about outdated libraries.
         
        .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11;
        Specified by:
        hasOutdatedLibrary in interface FindingOrBuilder
        Returns:
        Whether the outdatedLibrary field is set.
      • getOutdatedLibrary

        public OutdatedLibrary getOutdatedLibrary()
         An addon containing information about outdated libraries.
         
        .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11;
        Specified by:
        getOutdatedLibrary in interface FindingOrBuilder
        Returns:
        The outdatedLibrary.
      • hasViolatingResource

        public boolean hasViolatingResource()
         An addon containing detailed information regarding any resource causing the
         vulnerability such as JavaScript sources, image, audio files, etc.
         
        .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12;
        Specified by:
        hasViolatingResource in interface FindingOrBuilder
        Returns:
        Whether the violatingResource field is set.
      • getViolatingResource

        public ViolatingResource getViolatingResource()
         An addon containing detailed information regarding any resource causing the
         vulnerability such as JavaScript sources, image, audio files, etc.
         
        .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12;
        Specified by:
        getViolatingResource in interface FindingOrBuilder
        Returns:
        The violatingResource.
      • getViolatingResourceOrBuilder

        public ViolatingResourceOrBuilder getViolatingResourceOrBuilder()
         An addon containing detailed information regarding any resource causing the
         vulnerability such as JavaScript sources, image, audio files, etc.
         
        .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12;
        Specified by:
        getViolatingResourceOrBuilder in interface FindingOrBuilder
      • hasVulnerableHeaders

        public boolean hasVulnerableHeaders()
         An addon containing information about vulnerable or missing HTTP headers.
         
        .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15;
        Specified by:
        hasVulnerableHeaders in interface FindingOrBuilder
        Returns:
        Whether the vulnerableHeaders field is set.
      • getVulnerableHeaders

        public VulnerableHeaders getVulnerableHeaders()
         An addon containing information about vulnerable or missing HTTP headers.
         
        .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15;
        Specified by:
        getVulnerableHeaders in interface FindingOrBuilder
        Returns:
        The vulnerableHeaders.
      • hasVulnerableParameters

        public boolean hasVulnerableParameters()
         An addon containing information about request parameters which were found
         to be vulnerable.
         
        .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13;
        Specified by:
        hasVulnerableParameters in interface FindingOrBuilder
        Returns:
        Whether the vulnerableParameters field is set.
      • getVulnerableParameters

        public VulnerableParameters getVulnerableParameters()
         An addon containing information about request parameters which were found
         to be vulnerable.
         
        .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13;
        Specified by:
        getVulnerableParameters in interface FindingOrBuilder
        Returns:
        The vulnerableParameters.
      • hasXss

        public boolean hasXss()
         An addon containing information reported for an XSS, if any.
         
        .google.cloud.websecurityscanner.v1alpha.Xss xss = 14;
        Specified by:
        hasXss in interface FindingOrBuilder
        Returns:
        Whether the xss field is set.
      • getXss

        public Xss getXss()
         An addon containing information reported for an XSS, if any.
         
        .google.cloud.websecurityscanner.v1alpha.Xss xss = 14;
        Specified by:
        getXss in interface FindingOrBuilder
        Returns:
        The xss.
      • getXssOrBuilder

        public XssOrBuilder getXssOrBuilder()
         An addon containing information reported for an XSS, if any.
         
        .google.cloud.websecurityscanner.v1alpha.Xss xss = 14;
        Specified by:
        getXssOrBuilder in interface FindingOrBuilder
      • 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