Class Occurrence (2.34.0)

  public 
  
 final 
  
 class 
 Occurrence 
  
 extends 
  
 GeneratedMessageV3 
  
 implements 
  
 OccurrenceOrBuilder 
 

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

Protobuf type grafeas.v1.Occurrence

Implements

OccurrenceOrBuilder

Static Fields

ATTESTATION_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 ATTESTATION_FIELD_NUMBER 
 
Field Value
Type
Description
int

BUILD_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 BUILD_FIELD_NUMBER 
 
Field Value
Type
Description
int

COMPLIANCE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 COMPLIANCE_FIELD_NUMBER 
 
Field Value
Type
Description
int

CREATE_TIME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 CREATE_TIME_FIELD_NUMBER 
 
Field Value
Type
Description
int

DEPLOYMENT_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 DEPLOYMENT_FIELD_NUMBER 
 
Field Value
Type
Description
int

DISCOVERY_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 DISCOVERY_FIELD_NUMBER 
 
Field Value
Type
Description
int

DSSE_ATTESTATION_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 DSSE_ATTESTATION_FIELD_NUMBER 
 
Field Value
Type
Description
int

ENVELOPE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 ENVELOPE_FIELD_NUMBER 
 
Field Value
Type
Description
int

IMAGE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 IMAGE_FIELD_NUMBER 
 
Field Value
Type
Description
int

KIND_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 KIND_FIELD_NUMBER 
 
Field Value
Type
Description
int

NAME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 NAME_FIELD_NUMBER 
 
Field Value
Type
Description
int

NOTE_NAME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 NOTE_NAME_FIELD_NUMBER 
 
Field Value
Type
Description
int

PACKAGE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 PACKAGE_FIELD_NUMBER 
 
Field Value
Type
Description
int

REMEDIATION_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 REMEDIATION_FIELD_NUMBER 
 
Field Value
Type
Description
int

RESOURCE_URI_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 RESOURCE_URI_FIELD_NUMBER 
 
Field Value
Type
Description
int

UPDATE_TIME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 UPDATE_TIME_FIELD_NUMBER 
 
Field Value
Type
Description
int

UPGRADE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 UPGRADE_FIELD_NUMBER 
 
Field Value
Type
Description
int

VULNERABILITY_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 VULNERABILITY_FIELD_NUMBER 
 
Field Value
Type
Description
int

Static Methods

getDefaultInstance()

  public 
  
 static 
  
 Occurrence 
  
 getDefaultInstance 
 () 
 
Returns
Type
Description

getDescriptor()

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

newBuilder()

  public 
  
 static 
  
 Occurrence 
 . 
 Builder 
  
 newBuilder 
 () 
 
Returns
Type
Description

newBuilder(Occurrence prototype)

  public 
  
 static 
  
 Occurrence 
 . 
 Builder 
  
 newBuilder 
 ( 
 Occurrence 
  
 prototype 
 ) 
 
Parameter
Name
Description
prototype
Returns
Type
Description

parseDelimitedFrom(InputStream input)

  public 
  
 static 
  
 Occurrence 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Exceptions
Type
Description

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Occurrence 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(byte[] data)

  public 
  
 static 
  
 Occurrence 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 ) 
 
Parameter
Name
Description
data
byte []
Returns
Type
Description
Exceptions
Type
Description

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Occurrence 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
byte []
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteString data)

  public 
  
 static 
  
 Occurrence 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Occurrence 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(CodedInputStream input)

  public 
  
 static 
  
 Occurrence 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Exceptions
Type
Description

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Occurrence 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(InputStream input)

  public 
  
 static 
  
 Occurrence 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Exceptions
Type
Description

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Occurrence 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteBuffer data)

  public 
  
 static 
  
 Occurrence 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Occurrence 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parser()

  public 
  
 static 
  
 Parser<Occurrence> 
  
 parser 
 () 
 
Returns
Type
Description

Methods

equals(Object obj)

  public 
  
 boolean 
  
 equals 
 ( 
 Object 
  
 obj 
 ) 
 
Parameter
Name
Description
obj
Returns
Type
Description
Overrides

getAttestation()

  public 
  
 AttestationOccurrence 
  
 getAttestation 
 () 
 

Describes an attestation of an artifact.

.grafeas.v1.AttestationOccurrence attestation = 14;

Returns
Type
Description

The attestation.

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.

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.

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.

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.

getDeploymentOrBuilder()

  public 
  
 DeploymentOccurrenceOrBuilder 
  
 getDeploymentOrBuilder 
 () 
 

Describes the deployment of an artifact on a runtime.

.grafeas.v1.DeploymentOccurrence deployment = 12;

Returns
Type
Description

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.

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.

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.

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.

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.

getPackageOrBuilder()

  public 
  
 PackageOccurrenceOrBuilder 
  
 getPackageOrBuilder 
 () 
 

Describes the installation of a package on the linked resource.

.grafeas.v1.PackageOccurrence package = 11;

Returns
Type
Description

getParserForType()

  public 
  
 Parser<Occurrence> 
  
 getParserForType 
 () 
 
Returns
Type
Description
Overrides

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.

getSerializedSize()

  public 
  
 int 
  
 getSerializedSize 
 () 
 
Returns
Type
Description
int
Overrides

getUpdateTime()

  public 
  
 Timestamp 
  
 getUpdateTime 
 () 
 

Output only. The time this occurrence was last updated.

.google.protobuf.Timestamp update_time = 7;

Returns
Type
Description

The updateTime.

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.

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.

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.

hashCode()

  public 
  
 int 
  
 hashCode 
 () 
 
Returns
Type
Description
int
Overrides

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessageV3 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

newBuilderForType()

  public 
  
 Occurrence 
 . 
 Builder 
  
 newBuilderForType 
 () 
 
Returns
Type
Description

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

  protected 
  
 Occurrence 
 . 
 Builder 
  
 newBuilderForType 
 ( 
 GeneratedMessageV3 
 . 
 BuilderParent 
  
 parent 
 ) 
 
Parameter
Name
Description
parent
Returns
Type
Description
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

  protected 
  
 Object 
  
 newInstance 
 ( 
 GeneratedMessageV3 
 . 
 UnusedPrivateParameter 
  
 unused 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Overrides

toBuilder()

  public 
  
 Occurrence 
 . 
 Builder 
  
 toBuilder 
 () 
 
Returns
Type
Description

writeTo(CodedOutputStream output)

  public 
  
 void 
  
 writeTo 
 ( 
 CodedOutputStream 
  
 output 
 ) 
 
Parameter
Name
Description
Overrides
Exceptions
Type
Description
Design a Mobile Site
View Site in Mobile | Classic
Share by: