Interface DiscoveryOccurrenceOrBuilder (2.50.0)

public interface DiscoveryOccurrenceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAnalysisCompleted()

public abstract DiscoveryOccurrence.AnalysisCompleted getAnalysisCompleted()

.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;

Returns
Type Description
DiscoveryOccurrence.AnalysisCompleted

The analysisCompleted.

getAnalysisCompletedOrBuilder()

public abstract DiscoveryOccurrence.AnalysisCompletedOrBuilder getAnalysisCompletedOrBuilder()

.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;

Returns
Type Description
DiscoveryOccurrence.AnalysisCompletedOrBuilder

getAnalysisError(int index)

public abstract Status getAnalysisError(int index)

Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.

repeated .google.rpc.Status analysis_error = 8;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.Status

getAnalysisErrorCount()

public abstract int getAnalysisErrorCount()

Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.

repeated .google.rpc.Status analysis_error = 8;

Returns
Type Description
int

getAnalysisErrorList()

public abstract List<Status> getAnalysisErrorList()

Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.

repeated .google.rpc.Status analysis_error = 8;

Returns
Type Description
List<com.google.rpc.Status>

getAnalysisErrorOrBuilder(int index)

public abstract StatusOrBuilder getAnalysisErrorOrBuilder(int index)

Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.

repeated .google.rpc.Status analysis_error = 8;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.StatusOrBuilder

getAnalysisErrorOrBuilderList()

public abstract List<? extends StatusOrBuilder> getAnalysisErrorOrBuilderList()

Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.

repeated .google.rpc.Status analysis_error = 8;

Returns
Type Description
List<? extends com.google.rpc.StatusOrBuilder>

getAnalysisStatus()

public abstract DiscoveryOccurrence.AnalysisStatus getAnalysisStatus()

The status of discovery for the resource.

.grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2;

Returns
Type Description
DiscoveryOccurrence.AnalysisStatus

The analysisStatus.

getAnalysisStatusError()

public abstract Status getAnalysisStatusError()

When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.

.google.rpc.Status analysis_status_error = 3;

Returns
Type Description
com.google.rpc.Status

The analysisStatusError.

getAnalysisStatusErrorOrBuilder()

public abstract StatusOrBuilder getAnalysisStatusErrorOrBuilder()

When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.

.google.rpc.Status analysis_status_error = 3;

Returns
Type Description
com.google.rpc.StatusOrBuilder

getAnalysisStatusValue()

public abstract int getAnalysisStatusValue()

The status of discovery for the resource.

.grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2;

Returns
Type Description
int

The enum numeric value on the wire for analysisStatus.

getArchiveTime()

public abstract Timestamp getArchiveTime()

The time occurrences related to this discovery occurrence were archived.

.google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The archiveTime.

getArchiveTimeOrBuilder()

public abstract TimestampOrBuilder getArchiveTimeOrBuilder()

The time occurrences related to this discovery occurrence were archived.

.google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getContinuousAnalysis()

public abstract DiscoveryOccurrence.ContinuousAnalysis getContinuousAnalysis()

Whether the resource is continuously analyzed.

.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1;

Returns
Type Description
DiscoveryOccurrence.ContinuousAnalysis

The continuousAnalysis.

getContinuousAnalysisValue()

public abstract int getContinuousAnalysisValue()

Whether the resource is continuously analyzed.

.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1;

Returns
Type Description
int

The enum numeric value on the wire for continuousAnalysis.

getCpe()

public abstract String getCpe()

The CPE of the resource being scanned.

string cpe = 4;

Returns
Type Description
String

The cpe.

getCpeBytes()

public abstract ByteString getCpeBytes()

The CPE of the resource being scanned.

string cpe = 4;

Returns
Type Description
ByteString

The bytes for cpe.

getLastScanTime()

public abstract Timestamp getLastScanTime()

The last time this resource was scanned.

.google.protobuf.Timestamp last_scan_time = 5;

Returns
Type Description
Timestamp

The lastScanTime.

getLastScanTimeOrBuilder()

public abstract TimestampOrBuilder getLastScanTimeOrBuilder()

The last time this resource was scanned.

.google.protobuf.Timestamp last_scan_time = 5;

Returns
Type Description
TimestampOrBuilder

getSbomStatus()

public abstract DiscoveryOccurrence.SBOMStatus getSbomStatus()

The status of an SBOM generation.

.grafeas.v1.DiscoveryOccurrence.SBOMStatus sbom_status = 9;

Returns
Type Description
DiscoveryOccurrence.SBOMStatus

The sbomStatus.

getSbomStatusOrBuilder()

public abstract DiscoveryOccurrence.SBOMStatusOrBuilder getSbomStatusOrBuilder()

The status of an SBOM generation.

.grafeas.v1.DiscoveryOccurrence.SBOMStatus sbom_status = 9;

Returns
Type Description
DiscoveryOccurrence.SBOMStatusOrBuilder

getVulnerabilityAttestation()

public abstract DiscoveryOccurrence.VulnerabilityAttestation getVulnerabilityAttestation()

The status of an vulnerability attestation generation.

.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10;

Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation

The vulnerabilityAttestation.

getVulnerabilityAttestationOrBuilder()

public abstract DiscoveryOccurrence.VulnerabilityAttestationOrBuilder getVulnerabilityAttestationOrBuilder()

The status of an vulnerability attestation generation.

.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10;

Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestationOrBuilder

hasAnalysisCompleted()

public abstract boolean hasAnalysisCompleted()

.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;

Returns
Type Description
boolean

Whether the analysisCompleted field is set.

hasAnalysisStatusError()

public abstract boolean hasAnalysisStatusError()

When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.

.google.rpc.Status analysis_status_error = 3;

Returns
Type Description
boolean

Whether the analysisStatusError field is set.

hasArchiveTime()

public abstract boolean hasArchiveTime()

The time occurrences related to this discovery occurrence were archived.

.google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the archiveTime field is set.

hasLastScanTime()

public abstract boolean hasLastScanTime()

The last time this resource was scanned.

.google.protobuf.Timestamp last_scan_time = 5;

Returns
Type Description
boolean

Whether the lastScanTime field is set.

hasSbomStatus()

public abstract boolean hasSbomStatus()

The status of an SBOM generation.

.grafeas.v1.DiscoveryOccurrence.SBOMStatus sbom_status = 9;

Returns
Type Description
boolean

Whether the sbomStatus field is set.

hasVulnerabilityAttestation()

public abstract boolean hasVulnerabilityAttestation()

The status of an vulnerability attestation generation.

.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10;

Returns
Type Description
boolean

Whether the vulnerabilityAttestation field is set.