public final VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary(
      ProjectName parent, String filter) {

    GetVulnerabilityOccurrencesSummaryRequest request =
        GetVulnerabilityOccurrencesSummaryRequest.newBuilder()
            .setParent(parent == null ? null : parent.toString())
            .setFilter(filter)
            .build();
    return getVulnerabilityOccurrencesSummary(request);
  }
public final VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary ( ProjectName parent , String filter ) { GetVulnerabilityOccurrencesSummaryRequest request = GetVulnerabilityOccurrencesSummaryRequest . newBuilder ( ) . setParent ( parent == null ? null : parent . toString ( ) ) . setFilter ( filter ) . build ( ) ; return getVulnerabilityOccurrencesSummary ( request ) ; }
Gets a summary of the number and severity of occurrences.

<p>Sample code:

<pre><code>
try (GrafeasV1Beta1Client grafeasV1Beta1Client = GrafeasV1Beta1Client.create()) {
ProjectName parent = ProjectName.of("[PROJECT]");
String filter = "";
VulnerabilityOccurrencesSummary response = grafeasV1Beta1Client.getVulnerabilityOccurrencesSummary(parent, filter);
}
</code></pre>

@param parent The name of the project to get a vulnerability summary for in the form of
`projects/[PROJECT_ID]`.
@param filter The filter expression.
@throws com.google.api.gax.rpc.ApiException if the remote call fails