Class DiscoveryOccurrence.Builder (2.49.0)

public static final class DiscoveryOccurrence.Builder extends GeneratedMessageV3.Builder<DiscoveryOccurrence.Builder> implements DiscoveryOccurrenceOrBuilder

Provides information about the analysis status of a discovered resource.

Protobuf type grafeas.v1.DiscoveryOccurrence

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllAnalysisError(Iterable<? extends Status> values)

public DiscoveryOccurrence.Builder addAllAnalysisError(Iterable<? extends Status> values)

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
values Iterable<? extends com.google.rpc.Status>
Returns
Type Description
DiscoveryOccurrence.Builder

addAnalysisError(Status value)

public DiscoveryOccurrence.Builder addAnalysisError(Status value)

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
value com.google.rpc.Status
Returns
Type Description
DiscoveryOccurrence.Builder

addAnalysisError(Status.Builder builderForValue)

public DiscoveryOccurrence.Builder addAnalysisError(Status.Builder builderForValue)

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
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
DiscoveryOccurrence.Builder

addAnalysisError(int index, Status value)

public DiscoveryOccurrence.Builder addAnalysisError(int index, Status value)

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;

Parameters
Name Description
index int
value com.google.rpc.Status
Returns
Type Description
DiscoveryOccurrence.Builder

addAnalysisError(int index, Status.Builder builderForValue)

public DiscoveryOccurrence.Builder addAnalysisError(int index, Status.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
DiscoveryOccurrence.Builder

addAnalysisErrorBuilder()

public Status.Builder addAnalysisErrorBuilder()

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
com.google.rpc.Status.Builder

addAnalysisErrorBuilder(int index)

public Status.Builder addAnalysisErrorBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DiscoveryOccurrence.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DiscoveryOccurrence.Builder
Overrides

build()

public DiscoveryOccurrence build()
Returns
Type Description
DiscoveryOccurrence

buildPartial()

public DiscoveryOccurrence buildPartial()
Returns
Type Description
DiscoveryOccurrence

clear()

public DiscoveryOccurrence.Builder clear()
Returns
Type Description
DiscoveryOccurrence.Builder
Overrides

clearAnalysisCompleted()

public DiscoveryOccurrence.Builder clearAnalysisCompleted()

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

Returns
Type Description
DiscoveryOccurrence.Builder

clearAnalysisError()

public DiscoveryOccurrence.Builder clearAnalysisError()

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
DiscoveryOccurrence.Builder

clearAnalysisStatus()

public DiscoveryOccurrence.Builder clearAnalysisStatus()

The status of discovery for the resource.

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

Returns
Type Description
DiscoveryOccurrence.Builder

This builder for chaining.

clearAnalysisStatusError()

public DiscoveryOccurrence.Builder clearAnalysisStatusError()

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
DiscoveryOccurrence.Builder

clearArchiveTime()

public DiscoveryOccurrence.Builder clearArchiveTime()

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
DiscoveryOccurrence.Builder

clearContinuousAnalysis()

public DiscoveryOccurrence.Builder clearContinuousAnalysis()

Whether the resource is continuously analyzed.

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

Returns
Type Description
DiscoveryOccurrence.Builder

This builder for chaining.

clearCpe()

public DiscoveryOccurrence.Builder clearCpe()

The CPE of the resource being scanned.

string cpe = 4;

Returns
Type Description
DiscoveryOccurrence.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DiscoveryOccurrence.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DiscoveryOccurrence.Builder
Overrides

clearLastScanTime()

public DiscoveryOccurrence.Builder clearLastScanTime()

The last time this resource was scanned.

.google.protobuf.Timestamp last_scan_time = 5;

Returns
Type Description
DiscoveryOccurrence.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DiscoveryOccurrence.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DiscoveryOccurrence.Builder
Overrides

clearSbomStatus()

public DiscoveryOccurrence.Builder clearSbomStatus()

The status of an SBOM generation.

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

Returns
Type Description
DiscoveryOccurrence.Builder

clearVulnerabilityAttestation()

public DiscoveryOccurrence.Builder clearVulnerabilityAttestation()

The status of an vulnerability attestation generation.

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

Returns
Type Description
DiscoveryOccurrence.Builder

clone()

public DiscoveryOccurrence.Builder clone()
Returns
Type Description
DiscoveryOccurrence.Builder
Overrides

getAnalysisCompleted()

public DiscoveryOccurrence.AnalysisCompleted getAnalysisCompleted()

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

Returns
Type Description
DiscoveryOccurrence.AnalysisCompleted

The analysisCompleted.

getAnalysisCompletedBuilder()

public DiscoveryOccurrence.AnalysisCompleted.Builder getAnalysisCompletedBuilder()

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

Returns
Type Description
DiscoveryOccurrence.AnalysisCompleted.Builder

getAnalysisCompletedOrBuilder()

public DiscoveryOccurrence.AnalysisCompletedOrBuilder getAnalysisCompletedOrBuilder()

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

Returns
Type Description
DiscoveryOccurrence.AnalysisCompletedOrBuilder

getAnalysisError(int index)

public 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

getAnalysisErrorBuilder(int index)

public Status.Builder getAnalysisErrorBuilder(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.Builder

getAnalysisErrorBuilderList()

public List<Status.Builder> getAnalysisErrorBuilderList()

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.Builder>

getAnalysisErrorCount()

public 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 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 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 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 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 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.

getAnalysisStatusErrorBuilder()

public Status.Builder getAnalysisStatusErrorBuilder()

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.Builder

getAnalysisStatusErrorOrBuilder()

public 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 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 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.

getArchiveTimeBuilder()

public Timestamp.Builder getArchiveTimeBuilder()

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
Builder

getArchiveTimeOrBuilder()

public 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 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 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 String getCpe()

The CPE of the resource being scanned.

string cpe = 4;

Returns
Type Description
String

The cpe.

getCpeBytes()

public ByteString getCpeBytes()

The CPE of the resource being scanned.

string cpe = 4;

Returns
Type Description
ByteString

The bytes for cpe.

getDefaultInstanceForType()

public DiscoveryOccurrence getDefaultInstanceForType()
Returns
Type Description
DiscoveryOccurrence

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLastScanTime()

public Timestamp getLastScanTime()

The last time this resource was scanned.

.google.protobuf.Timestamp last_scan_time = 5;

Returns
Type Description
Timestamp

The lastScanTime.

getLastScanTimeBuilder()

public Timestamp.Builder getLastScanTimeBuilder()

The last time this resource was scanned.

.google.protobuf.Timestamp last_scan_time = 5;

Returns
Type Description
Builder

getLastScanTimeOrBuilder()

public TimestampOrBuilder getLastScanTimeOrBuilder()

The last time this resource was scanned.

.google.protobuf.Timestamp last_scan_time = 5;

Returns
Type Description
TimestampOrBuilder

getSbomStatus()

public DiscoveryOccurrence.SBOMStatus getSbomStatus()

The status of an SBOM generation.

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

Returns
Type Description
DiscoveryOccurrence.SBOMStatus

The sbomStatus.

getSbomStatusBuilder()

public DiscoveryOccurrence.SBOMStatus.Builder getSbomStatusBuilder()

The status of an SBOM generation.

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

Returns
Type Description
DiscoveryOccurrence.SBOMStatus.Builder

getSbomStatusOrBuilder()

public DiscoveryOccurrence.SBOMStatusOrBuilder getSbomStatusOrBuilder()

The status of an SBOM generation.

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

Returns
Type Description
DiscoveryOccurrence.SBOMStatusOrBuilder

getVulnerabilityAttestation()

public DiscoveryOccurrence.VulnerabilityAttestation getVulnerabilityAttestation()

The status of an vulnerability attestation generation.

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

Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation

The vulnerabilityAttestation.

getVulnerabilityAttestationBuilder()

public DiscoveryOccurrence.VulnerabilityAttestation.Builder getVulnerabilityAttestationBuilder()

The status of an vulnerability attestation generation.

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

Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation.Builder

getVulnerabilityAttestationOrBuilder()

public DiscoveryOccurrence.VulnerabilityAttestationOrBuilder getVulnerabilityAttestationOrBuilder()

The status of an vulnerability attestation generation.

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

Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestationOrBuilder

hasAnalysisCompleted()

public boolean hasAnalysisCompleted()

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

Returns
Type Description
boolean

Whether the analysisCompleted field is set.

hasAnalysisStatusError()

public 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 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 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 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 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAnalysisCompleted(DiscoveryOccurrence.AnalysisCompleted value)

public DiscoveryOccurrence.Builder mergeAnalysisCompleted(DiscoveryOccurrence.AnalysisCompleted value)

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

Parameter
Name Description
value DiscoveryOccurrence.AnalysisCompleted
Returns
Type Description
DiscoveryOccurrence.Builder

mergeAnalysisStatusError(Status value)

public DiscoveryOccurrence.Builder mergeAnalysisStatusError(Status value)

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;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
DiscoveryOccurrence.Builder

mergeArchiveTime(Timestamp value)

public DiscoveryOccurrence.Builder mergeArchiveTime(Timestamp value)

The time occurrences related to this discovery occurrence were archived.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
DiscoveryOccurrence.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DiscoveryOccurrence.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiscoveryOccurrence.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DiscoveryOccurrence.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DiscoveryOccurrence.Builder
Overrides

mergeFrom(DiscoveryOccurrence other)

public DiscoveryOccurrence.Builder mergeFrom(DiscoveryOccurrence other)
Parameter
Name Description
other DiscoveryOccurrence
Returns
Type Description
DiscoveryOccurrence.Builder

mergeLastScanTime(Timestamp value)

public DiscoveryOccurrence.Builder mergeLastScanTime(Timestamp value)

The last time this resource was scanned.

.google.protobuf.Timestamp last_scan_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
DiscoveryOccurrence.Builder

mergeSbomStatus(DiscoveryOccurrence.SBOMStatus value)

public DiscoveryOccurrence.Builder mergeSbomStatus(DiscoveryOccurrence.SBOMStatus value)

The status of an SBOM generation.

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

Parameter
Name Description
value DiscoveryOccurrence.SBOMStatus
Returns
Type Description
DiscoveryOccurrence.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveryOccurrence.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiscoveryOccurrence.Builder
Overrides

mergeVulnerabilityAttestation(DiscoveryOccurrence.VulnerabilityAttestation value)

public DiscoveryOccurrence.Builder mergeVulnerabilityAttestation(DiscoveryOccurrence.VulnerabilityAttestation value)

The status of an vulnerability attestation generation.

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

Parameter
Name Description
value DiscoveryOccurrence.VulnerabilityAttestation
Returns
Type Description
DiscoveryOccurrence.Builder

removeAnalysisError(int index)

public DiscoveryOccurrence.Builder removeAnalysisError(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
DiscoveryOccurrence.Builder

setAnalysisCompleted(DiscoveryOccurrence.AnalysisCompleted value)

public DiscoveryOccurrence.Builder setAnalysisCompleted(DiscoveryOccurrence.AnalysisCompleted value)

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

Parameter
Name Description
value DiscoveryOccurrence.AnalysisCompleted
Returns
Type Description
DiscoveryOccurrence.Builder

setAnalysisCompleted(DiscoveryOccurrence.AnalysisCompleted.Builder builderForValue)

public DiscoveryOccurrence.Builder setAnalysisCompleted(DiscoveryOccurrence.AnalysisCompleted.Builder builderForValue)

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

Parameter
Name Description
builderForValue DiscoveryOccurrence.AnalysisCompleted.Builder
Returns
Type Description
DiscoveryOccurrence.Builder

setAnalysisError(int index, Status value)

public DiscoveryOccurrence.Builder setAnalysisError(int index, Status value)

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;

Parameters
Name Description
index int
value com.google.rpc.Status
Returns
Type Description
DiscoveryOccurrence.Builder

setAnalysisError(int index, Status.Builder builderForValue)

public DiscoveryOccurrence.Builder setAnalysisError(int index, Status.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
DiscoveryOccurrence.Builder

setAnalysisStatus(DiscoveryOccurrence.AnalysisStatus value)

public DiscoveryOccurrence.Builder setAnalysisStatus(DiscoveryOccurrence.AnalysisStatus value)

The status of discovery for the resource.

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

Parameter
Name Description
value DiscoveryOccurrence.AnalysisStatus

The analysisStatus to set.

Returns
Type Description
DiscoveryOccurrence.Builder

This builder for chaining.

setAnalysisStatusError(Status value)

public DiscoveryOccurrence.Builder setAnalysisStatusError(Status value)

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;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
DiscoveryOccurrence.Builder

setAnalysisStatusError(Status.Builder builderForValue)

public DiscoveryOccurrence.Builder setAnalysisStatusError(Status.Builder builderForValue)

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;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
DiscoveryOccurrence.Builder

setAnalysisStatusValue(int value)

public DiscoveryOccurrence.Builder setAnalysisStatusValue(int value)

The status of discovery for the resource.

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

Parameter
Name Description
value int

The enum numeric value on the wire for analysisStatus to set.

Returns
Type Description
DiscoveryOccurrence.Builder

This builder for chaining.

setArchiveTime(Timestamp value)

public DiscoveryOccurrence.Builder setArchiveTime(Timestamp value)

The time occurrences related to this discovery occurrence were archived.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
DiscoveryOccurrence.Builder

setArchiveTime(Timestamp.Builder builderForValue)

public DiscoveryOccurrence.Builder setArchiveTime(Timestamp.Builder builderForValue)

The time occurrences related to this discovery occurrence were archived.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DiscoveryOccurrence.Builder

setContinuousAnalysis(DiscoveryOccurrence.ContinuousAnalysis value)

public DiscoveryOccurrence.Builder setContinuousAnalysis(DiscoveryOccurrence.ContinuousAnalysis value)

Whether the resource is continuously analyzed.

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

Parameter
Name Description
value DiscoveryOccurrence.ContinuousAnalysis

The continuousAnalysis to set.

Returns
Type Description
DiscoveryOccurrence.Builder

This builder for chaining.

setContinuousAnalysisValue(int value)

public DiscoveryOccurrence.Builder setContinuousAnalysisValue(int value)

Whether the resource is continuously analyzed.

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

Parameter
Name Description
value int

The enum numeric value on the wire for continuousAnalysis to set.

Returns
Type Description
DiscoveryOccurrence.Builder

This builder for chaining.

setCpe(String value)

public DiscoveryOccurrence.Builder setCpe(String value)

The CPE of the resource being scanned.

string cpe = 4;

Parameter
Name Description
value String

The cpe to set.

Returns
Type Description
DiscoveryOccurrence.Builder

This builder for chaining.

setCpeBytes(ByteString value)

public DiscoveryOccurrence.Builder setCpeBytes(ByteString value)

The CPE of the resource being scanned.

string cpe = 4;

Parameter
Name Description
value ByteString

The bytes for cpe to set.

Returns
Type Description
DiscoveryOccurrence.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DiscoveryOccurrence.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DiscoveryOccurrence.Builder
Overrides

setLastScanTime(Timestamp value)

public DiscoveryOccurrence.Builder setLastScanTime(Timestamp value)

The last time this resource was scanned.

.google.protobuf.Timestamp last_scan_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
DiscoveryOccurrence.Builder

setLastScanTime(Timestamp.Builder builderForValue)

public DiscoveryOccurrence.Builder setLastScanTime(Timestamp.Builder builderForValue)

The last time this resource was scanned.

.google.protobuf.Timestamp last_scan_time = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DiscoveryOccurrence.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DiscoveryOccurrence.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DiscoveryOccurrence.Builder
Overrides

setSbomStatus(DiscoveryOccurrence.SBOMStatus value)

public DiscoveryOccurrence.Builder setSbomStatus(DiscoveryOccurrence.SBOMStatus value)

The status of an SBOM generation.

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

Parameter
Name Description
value DiscoveryOccurrence.SBOMStatus
Returns
Type Description
DiscoveryOccurrence.Builder

setSbomStatus(DiscoveryOccurrence.SBOMStatus.Builder builderForValue)

public DiscoveryOccurrence.Builder setSbomStatus(DiscoveryOccurrence.SBOMStatus.Builder builderForValue)

The status of an SBOM generation.

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

Parameter
Name Description
builderForValue DiscoveryOccurrence.SBOMStatus.Builder
Returns
Type Description
DiscoveryOccurrence.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveryOccurrence.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiscoveryOccurrence.Builder
Overrides

setVulnerabilityAttestation(DiscoveryOccurrence.VulnerabilityAttestation value)

public DiscoveryOccurrence.Builder setVulnerabilityAttestation(DiscoveryOccurrence.VulnerabilityAttestation value)

The status of an vulnerability attestation generation.

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

Parameter
Name Description
value DiscoveryOccurrence.VulnerabilityAttestation
Returns
Type Description
DiscoveryOccurrence.Builder

setVulnerabilityAttestation(DiscoveryOccurrence.VulnerabilityAttestation.Builder builderForValue)

public DiscoveryOccurrence.Builder setVulnerabilityAttestation(DiscoveryOccurrence.VulnerabilityAttestation.Builder builderForValue)

The status of an vulnerability attestation generation.

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

Parameter
Name Description
builderForValue DiscoveryOccurrence.VulnerabilityAttestation.Builder
Returns
Type Description
DiscoveryOccurrence.Builder