Class Occurrence.Builder (2.42.0)

  public 
  
 static 
  
 final 
  
 class 
 Occurrence 
 . 
 Builder 
  
 extends 
  
 GeneratedMessageV3 
 . 
 Builder<Occurrence 
 . 
 Builder 
>  
 implements 
  
 OccurrenceOrBuilder 
 

An instance of an analysis type that has been found on a resource.

Protobuf type grafeas.v1.Occurrence

Implements

OccurrenceOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

  public 
  
 Occurrence 
  
 build 
 () 
 
Returns
Type
Description

buildPartial()

  public 
  
 Occurrence 
  
 buildPartial 
 () 
 
Returns
Type
Description

clear()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clear 
 () 
 
Returns
Type
Description
Overrides

clearAttestation()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clearAttestation 
 () 
 

Describes an attestation of an artifact.

.grafeas.v1.AttestationOccurrence attestation = 14;

Returns
Type
Description

clearBuild()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clearBuild 
 () 
 

Describes a verifiable build.

.grafeas.v1.BuildOccurrence build = 9;

Returns
Type
Description

clearCompliance()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clearCompliance 
 () 
 

Describes a compliance violation on a linked resource.

.grafeas.v1.ComplianceOccurrence compliance = 16;

Returns
Type
Description

clearCreateTime()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clearCreateTime 
 () 
 

Output only. The time this occurrence was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type
Description

clearDeployment()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clearDeployment 
 () 
 

Describes the deployment of an artifact on a runtime.

.grafeas.v1.DeploymentOccurrence deployment = 12;

Returns
Type
Description

clearDetails()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clearDetails 
 () 
 
Returns
Type
Description

clearDiscovery()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clearDiscovery 
 () 
 

Describes when a resource was discovered.

.grafeas.v1.DiscoveryOccurrence discovery = 13;

Returns
Type
Description

clearDsseAttestation()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clearDsseAttestation 
 () 
 

Describes an attestation of an artifact using dsse.

.grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17;

Returns
Type
Description

clearEnvelope()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clearEnvelope 
 () 
 

https://github.com/secure-systems-lab/dsse

.grafeas.v1.Envelope envelope = 18;

Returns
Type
Description

clearField(Descriptors.FieldDescriptor field)

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

clearImage()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clearImage 
 () 
 

Describes how this resource derives from the basis in the associated note.

.grafeas.v1.ImageOccurrence image = 10;

Returns
Type
Description

clearKind()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clearKind 
 () 
 

Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.

.grafeas.v1.NoteKind kind = 4;

Returns
Type
Description

This builder for chaining.

clearName()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clearName 
 () 
 

Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] .

string name = 1;

Returns
Type
Description

This builder for chaining.

clearNoteName()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clearNoteName 
 () 
 

Required. Immutable. The analysis note associated with this occurrence, in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID] . This field can be used as a filter in list requests.

string note_name = 3;

Returns
Type
Description

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPackage()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clearPackage 
 () 
 

Describes the installation of a package on the linked resource.

.grafeas.v1.PackageOccurrence package = 11;

Returns
Type
Description

clearRemediation()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clearRemediation 
 () 
 

A description of actions that can be taken to remedy the note.

string remediation = 5;

Returns
Type
Description

This builder for chaining.

clearResourceUri()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clearResourceUri 
 () 
 

Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, https://gcr.io/project/image@sha256:123abc for a Docker image.

string resource_uri = 2;

Returns
Type
Description

This builder for chaining.

clearUpdateTime()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clearUpdateTime 
 () 
 

Output only. The time this occurrence was last updated.

.google.protobuf.Timestamp update_time = 7;

Returns
Type
Description

clearUpgrade()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clearUpgrade 
 () 
 

Describes an available package upgrade on the linked resource.

.grafeas.v1.UpgradeOccurrence upgrade = 15;

Returns
Type
Description

clearVulnerability()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clearVulnerability 
 () 
 

Describes a security vulnerability.

.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;

Returns
Type
Description

clone()

  public 
  
 Occurrence 
 . 
 Builder 
  
 clone 
 () 
 
Returns
Type
Description
Overrides

getAttestation()

  public 
  
 AttestationOccurrence 
  
 getAttestation 
 () 
 

Describes an attestation of an artifact.

.grafeas.v1.AttestationOccurrence attestation = 14;

Returns
Type
Description

The attestation.

getAttestationBuilder()

  public 
  
 AttestationOccurrence 
 . 
 Builder 
  
 getAttestationBuilder 
 () 
 

Describes an attestation of an artifact.

.grafeas.v1.AttestationOccurrence attestation = 14;

Returns
Type
Description

getAttestationOrBuilder()

  public 
  
 AttestationOccurrenceOrBuilder 
  
 getAttestationOrBuilder 
 () 
 

Describes an attestation of an artifact.

.grafeas.v1.AttestationOccurrence attestation = 14;

Returns
Type
Description

getBuild()

  public 
  
 BuildOccurrence 
  
 getBuild 
 () 
 

Describes a verifiable build.

.grafeas.v1.BuildOccurrence build = 9;

Returns
Type
Description

The build.

getBuildBuilder()

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 getBuildBuilder 
 () 
 

Describes a verifiable build.

.grafeas.v1.BuildOccurrence build = 9;

Returns
Type
Description

getBuildOrBuilder()

  public 
  
 BuildOccurrenceOrBuilder 
  
 getBuildOrBuilder 
 () 
 

Describes a verifiable build.

.grafeas.v1.BuildOccurrence build = 9;

Returns
Type
Description

getCompliance()

  public 
  
 ComplianceOccurrence 
  
 getCompliance 
 () 
 

Describes a compliance violation on a linked resource.

.grafeas.v1.ComplianceOccurrence compliance = 16;

Returns
Type
Description

The compliance.

getComplianceBuilder()

  public 
  
 ComplianceOccurrence 
 . 
 Builder 
  
 getComplianceBuilder 
 () 
 

Describes a compliance violation on a linked resource.

.grafeas.v1.ComplianceOccurrence compliance = 16;

Returns
Type
Description

getComplianceOrBuilder()

  public 
  
 ComplianceOccurrenceOrBuilder 
  
 getComplianceOrBuilder 
 () 
 

Describes a compliance violation on a linked resource.

.grafeas.v1.ComplianceOccurrence compliance = 16;

Returns
Type
Description

getCreateTime()

  public 
  
 Timestamp 
  
 getCreateTime 
 () 
 

Output only. The time this occurrence was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type
Description

The createTime.

getCreateTimeBuilder()

  public 
  
 Timestamp 
 . 
 Builder 
  
 getCreateTimeBuilder 
 () 
 

Output only. The time this occurrence was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type
Description

getCreateTimeOrBuilder()

  public 
  
 TimestampOrBuilder 
  
 getCreateTimeOrBuilder 
 () 
 

Output only. The time this occurrence was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type
Description

getDefaultInstanceForType()

  public 
  
 Occurrence 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description

getDeployment()

  public 
  
 DeploymentOccurrence 
  
 getDeployment 
 () 
 

Describes the deployment of an artifact on a runtime.

.grafeas.v1.DeploymentOccurrence deployment = 12;

Returns
Type
Description

The deployment.

getDeploymentBuilder()

  public 
  
 DeploymentOccurrence 
 . 
 Builder 
  
 getDeploymentBuilder 
 () 
 

Describes the deployment of an artifact on a runtime.

.grafeas.v1.DeploymentOccurrence deployment = 12;

Returns
Type
Description

getDeploymentOrBuilder()

  public 
  
 DeploymentOccurrenceOrBuilder 
  
 getDeploymentOrBuilder 
 () 
 

Describes the deployment of an artifact on a runtime.

.grafeas.v1.DeploymentOccurrence deployment = 12;

Returns
Type
Description

getDescriptorForType()

  public 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptorForType 
 () 
 
Returns
Type
Description
Overrides

getDetailsCase()

  public 
  
 Occurrence 
 . 
 DetailsCase 
  
 getDetailsCase 
 () 
 
Returns
Type
Description

getDiscovery()

  public 
  
 DiscoveryOccurrence 
  
 getDiscovery 
 () 
 

Describes when a resource was discovered.

.grafeas.v1.DiscoveryOccurrence discovery = 13;

Returns
Type
Description

The discovery.

getDiscoveryBuilder()

  public 
  
 DiscoveryOccurrence 
 . 
 Builder 
  
 getDiscoveryBuilder 
 () 
 

Describes when a resource was discovered.

.grafeas.v1.DiscoveryOccurrence discovery = 13;

Returns
Type
Description

getDiscoveryOrBuilder()

  public 
  
 DiscoveryOccurrenceOrBuilder 
  
 getDiscoveryOrBuilder 
 () 
 

Describes when a resource was discovered.

.grafeas.v1.DiscoveryOccurrence discovery = 13;

Returns
Type
Description

getDsseAttestation()

  public 
  
 DSSEAttestationOccurrence 
  
 getDsseAttestation 
 () 
 

Describes an attestation of an artifact using dsse.

.grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17;

Returns
Type
Description

The dsseAttestation.

getDsseAttestationBuilder()

  public 
  
 DSSEAttestationOccurrence 
 . 
 Builder 
  
 getDsseAttestationBuilder 
 () 
 

Describes an attestation of an artifact using dsse.

.grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17;

Returns
Type
Description

getDsseAttestationOrBuilder()

  public 
  
 DSSEAttestationOccurrenceOrBuilder 
  
 getDsseAttestationOrBuilder 
 () 
 

Describes an attestation of an artifact using dsse.

.grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17;

Returns
Type
Description

getEnvelope()

  public 
  
 Envelope 
  
 getEnvelope 
 () 
 

https://github.com/secure-systems-lab/dsse

.grafeas.v1.Envelope envelope = 18;

Returns
Type
Description

The envelope.

getEnvelopeBuilder()

  public 
  
 Envelope 
 . 
 Builder 
  
 getEnvelopeBuilder 
 () 
 

https://github.com/secure-systems-lab/dsse

.grafeas.v1.Envelope envelope = 18;

Returns
Type
Description

getEnvelopeOrBuilder()

  public 
  
 EnvelopeOrBuilder 
  
 getEnvelopeOrBuilder 
 () 
 

https://github.com/secure-systems-lab/dsse

.grafeas.v1.Envelope envelope = 18;

Returns
Type
Description

getImage()

  public 
  
 ImageOccurrence 
  
 getImage 
 () 
 

Describes how this resource derives from the basis in the associated note.

.grafeas.v1.ImageOccurrence image = 10;

Returns
Type
Description

The image.

getImageBuilder()

  public 
  
 ImageOccurrence 
 . 
 Builder 
  
 getImageBuilder 
 () 
 

Describes how this resource derives from the basis in the associated note.

.grafeas.v1.ImageOccurrence image = 10;

Returns
Type
Description

getImageOrBuilder()

  public 
  
 ImageOccurrenceOrBuilder 
  
 getImageOrBuilder 
 () 
 

Describes how this resource derives from the basis in the associated note.

.grafeas.v1.ImageOccurrence image = 10;

Returns
Type
Description

getKind()

  public 
  
 NoteKind 
  
 getKind 
 () 
 

Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.

.grafeas.v1.NoteKind kind = 4;

Returns
Type
Description

The kind.

getKindValue()

  public 
  
 int 
  
 getKindValue 
 () 
 

Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.

.grafeas.v1.NoteKind kind = 4;

Returns
Type
Description
int

The enum numeric value on the wire for kind.

getName()

  public 
  
 String 
  
 getName 
 () 
 

Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] .

string name = 1;

Returns
Type
Description

The name.

getNameBytes()

  public 
  
 ByteString 
  
 getNameBytes 
 () 
 

Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] .

string name = 1;

Returns
Type
Description

The bytes for name.

getNoteName()

  public 
  
 String 
  
 getNoteName 
 () 
 

Required. Immutable. The analysis note associated with this occurrence, in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID] . This field can be used as a filter in list requests.

string note_name = 3;

Returns
Type
Description

The noteName.

getNoteNameBytes()

  public 
  
 ByteString 
  
 getNoteNameBytes 
 () 
 

Required. Immutable. The analysis note associated with this occurrence, in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID] . This field can be used as a filter in list requests.

string note_name = 3;

Returns
Type
Description

The bytes for noteName.

getPackage()

  public 
  
 PackageOccurrence 
  
 getPackage 
 () 
 

Describes the installation of a package on the linked resource.

.grafeas.v1.PackageOccurrence package = 11;

Returns
Type
Description

The package.

getPackageBuilder()

  public 
  
 PackageOccurrence 
 . 
 Builder 
  
 getPackageBuilder 
 () 
 

Describes the installation of a package on the linked resource.

.grafeas.v1.PackageOccurrence package = 11;

Returns
Type
Description

getPackageOrBuilder()

  public 
  
 PackageOccurrenceOrBuilder 
  
 getPackageOrBuilder 
 () 
 

Describes the installation of a package on the linked resource.

.grafeas.v1.PackageOccurrence package = 11;

Returns
Type
Description

getRemediation()

  public 
  
 String 
  
 getRemediation 
 () 
 

A description of actions that can be taken to remedy the note.

string remediation = 5;

Returns
Type
Description

The remediation.

getRemediationBytes()

  public 
  
 ByteString 
  
 getRemediationBytes 
 () 
 

A description of actions that can be taken to remedy the note.

string remediation = 5;

Returns
Type
Description

The bytes for remediation.

getResourceUri()

  public 
  
 String 
  
 getResourceUri 
 () 
 

Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, https://gcr.io/project/image@sha256:123abc for a Docker image.

string resource_uri = 2;

Returns
Type
Description

The resourceUri.

getResourceUriBytes()

  public 
  
 ByteString 
  
 getResourceUriBytes 
 () 
 

Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, https://gcr.io/project/image@sha256:123abc for a Docker image.

string resource_uri = 2;

Returns
Type
Description

The bytes for resourceUri.

getUpdateTime()

  public 
  
 Timestamp 
  
 getUpdateTime 
 () 
 

Output only. The time this occurrence was last updated.

.google.protobuf.Timestamp update_time = 7;

Returns
Type
Description

The updateTime.

getUpdateTimeBuilder()

  public 
  
 Timestamp 
 . 
 Builder 
  
 getUpdateTimeBuilder 
 () 
 

Output only. The time this occurrence was last updated.

.google.protobuf.Timestamp update_time = 7;

Returns
Type
Description

getUpdateTimeOrBuilder()

  public 
  
 TimestampOrBuilder 
  
 getUpdateTimeOrBuilder 
 () 
 

Output only. The time this occurrence was last updated.

.google.protobuf.Timestamp update_time = 7;

Returns
Type
Description

getUpgrade()

  public 
  
 UpgradeOccurrence 
  
 getUpgrade 
 () 
 

Describes an available package upgrade on the linked resource.

.grafeas.v1.UpgradeOccurrence upgrade = 15;

Returns
Type
Description

The upgrade.

getUpgradeBuilder()

  public 
  
 UpgradeOccurrence 
 . 
 Builder 
  
 getUpgradeBuilder 
 () 
 

Describes an available package upgrade on the linked resource.

.grafeas.v1.UpgradeOccurrence upgrade = 15;

Returns
Type
Description

getUpgradeOrBuilder()

  public 
  
 UpgradeOccurrenceOrBuilder 
  
 getUpgradeOrBuilder 
 () 
 

Describes an available package upgrade on the linked resource.

.grafeas.v1.UpgradeOccurrence upgrade = 15;

Returns
Type
Description

getVulnerability()

  public 
  
 VulnerabilityOccurrence 
  
 getVulnerability 
 () 
 

Describes a security vulnerability.

.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;

Returns
Type
Description

The vulnerability.

getVulnerabilityBuilder()

  public 
  
 VulnerabilityOccurrence 
 . 
 Builder 
  
 getVulnerabilityBuilder 
 () 
 

Describes a security vulnerability.

.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;

Returns
Type
Description

getVulnerabilityOrBuilder()

  public 
  
 VulnerabilityOccurrenceOrBuilder 
  
 getVulnerabilityOrBuilder 
 () 
 

Describes a security vulnerability.

.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;

Returns
Type
Description

hasAttestation()

  public 
  
 boolean 
  
 hasAttestation 
 () 
 

Describes an attestation of an artifact.

.grafeas.v1.AttestationOccurrence attestation = 14;

Returns
Type
Description

Whether the attestation field is set.

hasBuild()

  public 
  
 boolean 
  
 hasBuild 
 () 
 

Describes a verifiable build.

.grafeas.v1.BuildOccurrence build = 9;

Returns
Type
Description

Whether the build field is set.

hasCompliance()

  public 
  
 boolean 
  
 hasCompliance 
 () 
 

Describes a compliance violation on a linked resource.

.grafeas.v1.ComplianceOccurrence compliance = 16;

Returns
Type
Description

Whether the compliance field is set.

hasCreateTime()

  public 
  
 boolean 
  
 hasCreateTime 
 () 
 

Output only. The time this occurrence was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type
Description

Whether the createTime field is set.

hasDeployment()

  public 
  
 boolean 
  
 hasDeployment 
 () 
 

Describes the deployment of an artifact on a runtime.

.grafeas.v1.DeploymentOccurrence deployment = 12;

Returns
Type
Description

Whether the deployment field is set.

hasDiscovery()

  public 
  
 boolean 
  
 hasDiscovery 
 () 
 

Describes when a resource was discovered.

.grafeas.v1.DiscoveryOccurrence discovery = 13;

Returns
Type
Description

Whether the discovery field is set.

hasDsseAttestation()

  public 
  
 boolean 
  
 hasDsseAttestation 
 () 
 

Describes an attestation of an artifact using dsse.

.grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17;

Returns
Type
Description

Whether the dsseAttestation field is set.

hasEnvelope()

  public 
  
 boolean 
  
 hasEnvelope 
 () 
 

https://github.com/secure-systems-lab/dsse

.grafeas.v1.Envelope envelope = 18;

Returns
Type
Description

Whether the envelope field is set.

hasImage()

  public 
  
 boolean 
  
 hasImage 
 () 
 

Describes how this resource derives from the basis in the associated note.

.grafeas.v1.ImageOccurrence image = 10;

Returns
Type
Description

Whether the image field is set.

hasPackage()

  public 
  
 boolean 
  
 hasPackage 
 () 
 

Describes the installation of a package on the linked resource.

.grafeas.v1.PackageOccurrence package = 11;

Returns
Type
Description

Whether the package field is set.

hasUpdateTime()

  public 
  
 boolean 
  
 hasUpdateTime 
 () 
 

Output only. The time this occurrence was last updated.

.google.protobuf.Timestamp update_time = 7;

Returns
Type
Description

Whether the updateTime field is set.

hasUpgrade()

  public 
  
 boolean 
  
 hasUpgrade 
 () 
 

Describes an available package upgrade on the linked resource.

.grafeas.v1.UpgradeOccurrence upgrade = 15;

Returns
Type
Description

Whether the upgrade field is set.

hasVulnerability()

  public 
  
 boolean 
  
 hasVulnerability 
 () 
 

Describes a security vulnerability.

.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;

Returns
Type
Description

Whether the vulnerability field is set.

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessageV3 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

mergeAttestation(AttestationOccurrence value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 mergeAttestation 
 ( 
 AttestationOccurrence 
  
 value 
 ) 
 

Describes an attestation of an artifact.

.grafeas.v1.AttestationOccurrence attestation = 14;

Parameter
Name
Description
Returns
Type
Description

mergeBuild(BuildOccurrence value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 mergeBuild 
 ( 
 BuildOccurrence 
  
 value 
 ) 
 

Describes a verifiable build.

.grafeas.v1.BuildOccurrence build = 9;

Parameter
Name
Description
Returns
Type
Description

mergeCompliance(ComplianceOccurrence value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 mergeCompliance 
 ( 
 ComplianceOccurrence 
  
 value 
 ) 
 

Describes a compliance violation on a linked resource.

.grafeas.v1.ComplianceOccurrence compliance = 16;

Parameter
Name
Description
Returns
Type
Description

mergeCreateTime(Timestamp value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 mergeCreateTime 
 ( 
 Timestamp 
  
 value 
 ) 
 

Output only. The time this occurrence was created.

.google.protobuf.Timestamp create_time = 6;

Parameter
Name
Description
value
Returns
Type
Description

mergeDeployment(DeploymentOccurrence value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 mergeDeployment 
 ( 
 DeploymentOccurrence 
  
 value 
 ) 
 

Describes the deployment of an artifact on a runtime.

.grafeas.v1.DeploymentOccurrence deployment = 12;

Parameter
Name
Description
Returns
Type
Description

mergeDiscovery(DiscoveryOccurrence value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 mergeDiscovery 
 ( 
 DiscoveryOccurrence 
  
 value 
 ) 
 

Describes when a resource was discovered.

.grafeas.v1.DiscoveryOccurrence discovery = 13;

Parameter
Name
Description
Returns
Type
Description

mergeDsseAttestation(DSSEAttestationOccurrence value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 mergeDsseAttestation 
 ( 
 DSSEAttestationOccurrence 
  
 value 
 ) 
 

Describes an attestation of an artifact using dsse.

.grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17;

Parameter
Name
Description
Returns
Type
Description

mergeEnvelope(Envelope value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 mergeEnvelope 
 ( 
 Envelope 
  
 value 
 ) 
 

https://github.com/secure-systems-lab/dsse

.grafeas.v1.Envelope envelope = 18;

Parameter
Name
Description
value
Returns
Type
Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Occurrence other)

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

mergeImage(ImageOccurrence value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 mergeImage 
 ( 
 ImageOccurrence 
  
 value 
 ) 
 

Describes how this resource derives from the basis in the associated note.

.grafeas.v1.ImageOccurrence image = 10;

Parameter
Name
Description
Returns
Type
Description

mergePackage(PackageOccurrence value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 mergePackage 
 ( 
 PackageOccurrence 
  
 value 
 ) 
 

Describes the installation of a package on the linked resource.

.grafeas.v1.PackageOccurrence package = 11;

Parameter
Name
Description
Returns
Type
Description

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 mergeUpdateTime 
 ( 
 Timestamp 
  
 value 
 ) 
 

Output only. The time this occurrence was last updated.

.google.protobuf.Timestamp update_time = 7;

Parameter
Name
Description
value
Returns
Type
Description

mergeUpgrade(UpgradeOccurrence value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 mergeUpgrade 
 ( 
 UpgradeOccurrence 
  
 value 
 ) 
 

Describes an available package upgrade on the linked resource.

.grafeas.v1.UpgradeOccurrence upgrade = 15;

Parameter
Name
Description
Returns
Type
Description

mergeVulnerability(VulnerabilityOccurrence value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 mergeVulnerability 
 ( 
 VulnerabilityOccurrence 
  
 value 
 ) 
 

Describes a security vulnerability.

.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;

Parameter
Name
Description
Returns
Type
Description

setAttestation(AttestationOccurrence value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setAttestation 
 ( 
 AttestationOccurrence 
  
 value 
 ) 
 

Describes an attestation of an artifact.

.grafeas.v1.AttestationOccurrence attestation = 14;

Parameter
Name
Description
Returns
Type
Description

setAttestation(AttestationOccurrence.Builder builderForValue)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setAttestation 
 ( 
 AttestationOccurrence 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Describes an attestation of an artifact.

.grafeas.v1.AttestationOccurrence attestation = 14;

Parameter
Name
Description
Returns
Type
Description

setBuild(BuildOccurrence value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setBuild 
 ( 
 BuildOccurrence 
  
 value 
 ) 
 

Describes a verifiable build.

.grafeas.v1.BuildOccurrence build = 9;

Parameter
Name
Description
Returns
Type
Description

setBuild(BuildOccurrence.Builder builderForValue)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setBuild 
 ( 
 BuildOccurrence 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Describes a verifiable build.

.grafeas.v1.BuildOccurrence build = 9;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setCompliance(ComplianceOccurrence value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setCompliance 
 ( 
 ComplianceOccurrence 
  
 value 
 ) 
 

Describes a compliance violation on a linked resource.

.grafeas.v1.ComplianceOccurrence compliance = 16;

Parameter
Name
Description
Returns
Type
Description

setCompliance(ComplianceOccurrence.Builder builderForValue)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setCompliance 
 ( 
 ComplianceOccurrence 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Describes a compliance violation on a linked resource.

.grafeas.v1.ComplianceOccurrence compliance = 16;

Parameter
Name
Description
Returns
Type
Description

setCreateTime(Timestamp value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setCreateTime 
 ( 
 Timestamp 
  
 value 
 ) 
 

Output only. The time this occurrence was created.

.google.protobuf.Timestamp create_time = 6;

Parameter
Name
Description
value
Returns
Type
Description

setCreateTime(Timestamp.Builder builderForValue)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setCreateTime 
 ( 
 Timestamp 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Output only. The time this occurrence was created.

.google.protobuf.Timestamp create_time = 6;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setDeployment(DeploymentOccurrence value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setDeployment 
 ( 
 DeploymentOccurrence 
  
 value 
 ) 
 

Describes the deployment of an artifact on a runtime.

.grafeas.v1.DeploymentOccurrence deployment = 12;

Parameter
Name
Description
Returns
Type
Description

setDeployment(DeploymentOccurrence.Builder builderForValue)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setDeployment 
 ( 
 DeploymentOccurrence 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Describes the deployment of an artifact on a runtime.

.grafeas.v1.DeploymentOccurrence deployment = 12;

Parameter
Name
Description
Returns
Type
Description

setDiscovery(DiscoveryOccurrence value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setDiscovery 
 ( 
 DiscoveryOccurrence 
  
 value 
 ) 
 

Describes when a resource was discovered.

.grafeas.v1.DiscoveryOccurrence discovery = 13;

Parameter
Name
Description
Returns
Type
Description

setDiscovery(DiscoveryOccurrence.Builder builderForValue)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setDiscovery 
 ( 
 DiscoveryOccurrence 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Describes when a resource was discovered.

.grafeas.v1.DiscoveryOccurrence discovery = 13;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setDsseAttestation(DSSEAttestationOccurrence value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setDsseAttestation 
 ( 
 DSSEAttestationOccurrence 
  
 value 
 ) 
 

Describes an attestation of an artifact using dsse.

.grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17;

Parameter
Name
Description
Returns
Type
Description

setDsseAttestation(DSSEAttestationOccurrence.Builder builderForValue)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setDsseAttestation 
 ( 
 DSSEAttestationOccurrence 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Describes an attestation of an artifact using dsse.

.grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17;

Parameter
Name
Description
Returns
Type
Description

setEnvelope(Envelope value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setEnvelope 
 ( 
 Envelope 
  
 value 
 ) 
 

https://github.com/secure-systems-lab/dsse

.grafeas.v1.Envelope envelope = 18;

Parameter
Name
Description
value
Returns
Type
Description

setEnvelope(Envelope.Builder builderForValue)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setEnvelope 
 ( 
 Envelope 
 . 
 Builder 
  
 builderForValue 
 ) 
 

https://github.com/secure-systems-lab/dsse

.grafeas.v1.Envelope envelope = 18;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setField(Descriptors.FieldDescriptor field, Object value)

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

setImage(ImageOccurrence value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setImage 
 ( 
 ImageOccurrence 
  
 value 
 ) 
 

Describes how this resource derives from the basis in the associated note.

.grafeas.v1.ImageOccurrence image = 10;

Parameter
Name
Description
Returns
Type
Description

setImage(ImageOccurrence.Builder builderForValue)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setImage 
 ( 
 ImageOccurrence 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Describes how this resource derives from the basis in the associated note.

.grafeas.v1.ImageOccurrence image = 10;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setKind(NoteKind value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setKind 
 ( 
 NoteKind 
  
 value 
 ) 
 

Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.

.grafeas.v1.NoteKind kind = 4;

Parameter
Name
Description
value
NoteKind

The kind to set.

Returns
Type
Description

This builder for chaining.

setKindValue(int value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setKindValue 
 ( 
 int 
  
 value 
 ) 
 

Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.

.grafeas.v1.NoteKind kind = 4;

Parameter
Name
Description
value
int

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

Returns
Type
Description

This builder for chaining.

setName(String value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setName 
 ( 
 String 
  
 value 
 ) 
 

Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] .

string name = 1;

Parameter
Name
Description
value
String

The name to set.

Returns
Type
Description

This builder for chaining.

setNameBytes(ByteString value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setNameBytes 
 ( 
 ByteString 
  
 value 
 ) 
 

Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] .

string name = 1;

Parameter
Name
Description
value
ByteString

The bytes for name to set.

Returns
Type
Description

This builder for chaining.

setNoteName(String value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setNoteName 
 ( 
 String 
  
 value 
 ) 
 

Required. Immutable. The analysis note associated with this occurrence, in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID] . This field can be used as a filter in list requests.

string note_name = 3;

Parameter
Name
Description
value
String

The noteName to set.

Returns
Type
Description

This builder for chaining.

setNoteNameBytes(ByteString value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setNoteNameBytes 
 ( 
 ByteString 
  
 value 
 ) 
 

Required. Immutable. The analysis note associated with this occurrence, in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID] . This field can be used as a filter in list requests.

string note_name = 3;

Parameter
Name
Description
value
ByteString

The bytes for noteName to set.

Returns
Type
Description

This builder for chaining.

setPackage(PackageOccurrence value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setPackage 
 ( 
 PackageOccurrence 
  
 value 
 ) 
 

Describes the installation of a package on the linked resource.

.grafeas.v1.PackageOccurrence package = 11;

Parameter
Name
Description
Returns
Type
Description

setPackage(PackageOccurrence.Builder builderForValue)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setPackage 
 ( 
 PackageOccurrence 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Describes the installation of a package on the linked resource.

.grafeas.v1.PackageOccurrence package = 11;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setRemediation(String value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setRemediation 
 ( 
 String 
  
 value 
 ) 
 

A description of actions that can be taken to remedy the note.

string remediation = 5;

Parameter
Name
Description
value
String

The remediation to set.

Returns
Type
Description

This builder for chaining.

setRemediationBytes(ByteString value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setRemediationBytes 
 ( 
 ByteString 
  
 value 
 ) 
 

A description of actions that can be taken to remedy the note.

string remediation = 5;

Parameter
Name
Description
value
ByteString

The bytes for remediation to set.

Returns
Type
Description

This builder for chaining.

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

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

setResourceUri(String value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setResourceUri 
 ( 
 String 
  
 value 
 ) 
 

Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, https://gcr.io/project/image@sha256:123abc for a Docker image.

string resource_uri = 2;

Parameter
Name
Description
value
String

The resourceUri to set.

Returns
Type
Description

This builder for chaining.

setResourceUriBytes(ByteString value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setResourceUriBytes 
 ( 
 ByteString 
  
 value 
 ) 
 

Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, https://gcr.io/project/image@sha256:123abc for a Docker image.

string resource_uri = 2;

Parameter
Name
Description
value
ByteString

The bytes for resourceUri to set.

Returns
Type
Description

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setUpdateTime 
 ( 
 Timestamp 
  
 value 
 ) 
 

Output only. The time this occurrence was last updated.

.google.protobuf.Timestamp update_time = 7;

Parameter
Name
Description
value
Returns
Type
Description

setUpdateTime(Timestamp.Builder builderForValue)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setUpdateTime 
 ( 
 Timestamp 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Output only. The time this occurrence was last updated.

.google.protobuf.Timestamp update_time = 7;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setUpgrade(UpgradeOccurrence value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setUpgrade 
 ( 
 UpgradeOccurrence 
  
 value 
 ) 
 

Describes an available package upgrade on the linked resource.

.grafeas.v1.UpgradeOccurrence upgrade = 15;

Parameter
Name
Description
Returns
Type
Description

setUpgrade(UpgradeOccurrence.Builder builderForValue)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setUpgrade 
 ( 
 UpgradeOccurrence 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Describes an available package upgrade on the linked resource.

.grafeas.v1.UpgradeOccurrence upgrade = 15;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setVulnerability(VulnerabilityOccurrence value)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setVulnerability 
 ( 
 VulnerabilityOccurrence 
  
 value 
 ) 
 

Describes a security vulnerability.

.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;

Parameter
Name
Description
Returns
Type
Description

setVulnerability(VulnerabilityOccurrence.Builder builderForValue)

  public 
  
 Occurrence 
 . 
 Builder 
  
 setVulnerability 
 ( 
 VulnerabilityOccurrence 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Describes a security vulnerability.

.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;

Parameter
Name
Description
Returns
Type
Description
Design a Mobile Site
View Site in Mobile | Classic
Share by: