java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.websecurityscanner.v1.Finding
All Implemented Interfaces:
FindingOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Finding extends com.google.protobuf.GeneratedMessage implements FindingOrBuilder
 A Finding resource represents a vulnerability instance identified during a
 ScanRun.
 
Protobuf type google.cloud.websecurityscanner.v1.Finding
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • FINDING_TYPE_FIELD_NUMBER

      public static final int FINDING_TYPE_FIELD_NUMBER
      See Also:
    • SEVERITY_FIELD_NUMBER

      public static final int SEVERITY_FIELD_NUMBER
      See Also:
    • HTTP_METHOD_FIELD_NUMBER

      public static final int HTTP_METHOD_FIELD_NUMBER
      See Also:
    • FUZZED_URL_FIELD_NUMBER

      public static final int FUZZED_URL_FIELD_NUMBER
      See Also:
    • BODY_FIELD_NUMBER

      public static final int BODY_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • REPRODUCTION_URL_FIELD_NUMBER

      public static final int REPRODUCTION_URL_FIELD_NUMBER
      See Also:
    • FRAME_URL_FIELD_NUMBER

      public static final int FRAME_URL_FIELD_NUMBER
      See Also:
    • FINAL_URL_FIELD_NUMBER

      public static final int FINAL_URL_FIELD_NUMBER
      See Also:
    • TRACKING_ID_FIELD_NUMBER

      public static final int TRACKING_ID_FIELD_NUMBER
      See Also:
    • FORM_FIELD_NUMBER

      public static final int FORM_FIELD_NUMBER
      See Also:
    • OUTDATED_LIBRARY_FIELD_NUMBER

      public static final int OUTDATED_LIBRARY_FIELD_NUMBER
      See Also:
    • VIOLATING_RESOURCE_FIELD_NUMBER

      public static final int VIOLATING_RESOURCE_FIELD_NUMBER
      See Also:
    • VULNERABLE_HEADERS_FIELD_NUMBER

      public static final int VULNERABLE_HEADERS_FIELD_NUMBER
      See Also:
    • VULNERABLE_PARAMETERS_FIELD_NUMBER

      public static final int VULNERABLE_PARAMETERS_FIELD_NUMBER
      See Also:
    • XSS_FIELD_NUMBER

      public static final int XSS_FIELD_NUMBER
      See Also:
    • XXE_FIELD_NUMBER

      public static final int XXE_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
    • getName

      public String getName()
       Output only. 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()
       Output only. 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.
    • getFindingType

      public String getFindingType()
       Output only. The type of the Finding.
       Detailed and up-to-date information on findings can be found here:
       https://cloud.google.com/security-command-center/docs/how-to-remediate-web-security-scanner-findings
       
      string finding_type = 2;
      Specified by:
      getFindingType in interface FindingOrBuilder
      Returns:
      The findingType.
    • getFindingTypeBytes

      public com.google.protobuf.ByteString getFindingTypeBytes()
       Output only. The type of the Finding.
       Detailed and up-to-date information on findings can be found here:
       https://cloud.google.com/security-command-center/docs/how-to-remediate-web-security-scanner-findings
       
      string finding_type = 2;
      Specified by:
      getFindingTypeBytes in interface FindingOrBuilder
      Returns:
      The bytes for findingType.
    • getSeverityValue

      public int getSeverityValue()
       Output only. The severity level of the reported vulnerability.
       
      .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSeverityValue in interface FindingOrBuilder
      Returns:
      The enum numeric value on the wire for severity.
    • getSeverity

      public Finding.Severity getSeverity()
       Output only. The severity level of the reported vulnerability.
       
      .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSeverity in interface FindingOrBuilder
      Returns:
      The severity.
    • getHttpMethod

      public String getHttpMethod()
       Output only. 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()
       Output only. 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()
       Output only. 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()
       Output only. 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()
       Output only. 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()
       Output only. 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()
       Output only. The description of the vulnerability.
       
      string description = 6;
      Specified by:
      getDescription in interface FindingOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

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

      public String getReproductionUrl()
       Output only. 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()
       Output only. 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()
       Output only. 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()
       Output only. 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()
       Output only. 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()
       Output only. 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()
       Output only. 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()
       Output only. 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.
    • hasForm

      public boolean hasForm()
       Output only. An addon containing information reported for a vulnerability with an HTML
       form, if any.
       
      .google.cloud.websecurityscanner.v1.Form form = 16;
      Specified by:
      hasForm in interface FindingOrBuilder
      Returns:
      Whether the form field is set.
    • getForm

      public Form getForm()
       Output only. An addon containing information reported for a vulnerability with an HTML
       form, if any.
       
      .google.cloud.websecurityscanner.v1.Form form = 16;
      Specified by:
      getForm in interface FindingOrBuilder
      Returns:
      The form.
    • getFormOrBuilder

      public FormOrBuilder getFormOrBuilder()
       Output only. An addon containing information reported for a vulnerability with an HTML
       form, if any.
       
      .google.cloud.websecurityscanner.v1.Form form = 16;
      Specified by:
      getFormOrBuilder in interface FindingOrBuilder
    • hasOutdatedLibrary

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

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

      public OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder()
       Output only. An addon containing information about outdated libraries.
       
      .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11;
      Specified by:
      getOutdatedLibraryOrBuilder in interface FindingOrBuilder
    • hasViolatingResource

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

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

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

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

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

      public VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder()
       Output only. An addon containing information about vulnerable or missing HTTP headers.
       
      .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15;
      Specified by:
      getVulnerableHeadersOrBuilder in interface FindingOrBuilder
    • hasVulnerableParameters

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

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

      public VulnerableParametersOrBuilder getVulnerableParametersOrBuilder()
       Output only. An addon containing information about request parameters which were found
       to be vulnerable.
       
      .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13;
      Specified by:
      getVulnerableParametersOrBuilder in interface FindingOrBuilder
    • hasXss

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

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

      public XssOrBuilder getXssOrBuilder()
       Output only. An addon containing information reported for an XSS, if any.
       
      .google.cloud.websecurityscanner.v1.Xss xss = 14;
      Specified by:
      getXssOrBuilder in interface FindingOrBuilder
    • hasXxe

      public boolean hasXxe()
       Output only. An addon containing information reported for an XXE, if any.
       
      .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasXxe in interface FindingOrBuilder
      Returns:
      Whether the xxe field is set.
    • getXxe

      public Xxe getXxe()
       Output only. An addon containing information reported for an XXE, if any.
       
      .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getXxe in interface FindingOrBuilder
      Returns:
      The xxe.
    • getXxeOrBuilder

      public XxeOrBuilder getXxeOrBuilder()
       Output only. An addon containing information reported for an XXE, if any.
       
      .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getXxeOrBuilder in interface FindingOrBuilder
    • 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 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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

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

      public static Finding parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • 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
    • newBuilder

      public static Finding.Builder newBuilder()
    • newBuilder

      public static Finding.Builder newBuilder(Finding prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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