- 2.74.0 (latest)
- 2.73.0
- 2.71.0
- 2.69.0
- 2.68.0
- 2.65.0
- 2.64.0
- 2.63.0
- 2.61.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.5
- 2.3.1
- 2.2.3
- 2.1.3
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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > OccurrenceImplements
OccurrenceOrBuilderStatic Fields
ATTESTATION_FIELD_NUMBER
public
static
final
int
ATTESTATION_FIELD_NUMBER
BUILD_FIELD_NUMBER
public
static
final
int
BUILD_FIELD_NUMBER
COMPLIANCE_FIELD_NUMBER
public
static
final
int
COMPLIANCE_FIELD_NUMBER
CREATE_TIME_FIELD_NUMBER
public
static
final
int
CREATE_TIME_FIELD_NUMBER
DEPLOYMENT_FIELD_NUMBER
public
static
final
int
DEPLOYMENT_FIELD_NUMBER
DISCOVERY_FIELD_NUMBER
public
static
final
int
DISCOVERY_FIELD_NUMBER
DSSE_ATTESTATION_FIELD_NUMBER
public
static
final
int
DSSE_ATTESTATION_FIELD_NUMBER
ENVELOPE_FIELD_NUMBER
public
static
final
int
ENVELOPE_FIELD_NUMBER
IMAGE_FIELD_NUMBER
public
static
final
int
IMAGE_FIELD_NUMBER
KIND_FIELD_NUMBER
public
static
final
int
KIND_FIELD_NUMBER
NAME_FIELD_NUMBER
public
static
final
int
NAME_FIELD_NUMBER
NOTE_NAME_FIELD_NUMBER
public
static
final
int
NOTE_NAME_FIELD_NUMBER
PACKAGE_FIELD_NUMBER
public
static
final
int
PACKAGE_FIELD_NUMBER
REMEDIATION_FIELD_NUMBER
public
static
final
int
REMEDIATION_FIELD_NUMBER
RESOURCE_URI_FIELD_NUMBER
public
static
final
int
RESOURCE_URI_FIELD_NUMBER
SBOM_REFERENCE_FIELD_NUMBER
public
static
final
int
SBOM_REFERENCE_FIELD_NUMBER
SECRET_FIELD_NUMBER
public
static
final
int
SECRET_FIELD_NUMBER
UPDATE_TIME_FIELD_NUMBER
public
static
final
int
UPDATE_TIME_FIELD_NUMBER
UPGRADE_FIELD_NUMBER
public
static
final
int
UPGRADE_FIELD_NUMBER
VULNERABILITY_FIELD_NUMBER
public
static
final
int
VULNERABILITY_FIELD_NUMBER
Static Methods
getDefaultInstance()
public
static
Occurrence
getDefaultInstance
()
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
newBuilder()
public
static
Occurrence
.
Builder
newBuilder
()
newBuilder(Occurrence prototype)
public
static
Occurrence
.
Builder
newBuilder
(
Occurrence
prototype
)
parseDelimitedFrom(InputStream input)
public
static
Occurrence
parseDelimitedFrom
(
InputStream
input
)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Occurrence
parseDelimitedFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(byte[] data)
public
static
Occurrence
parseFrom
(
byte
[]
data
)
data
byte
[]
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public
static
Occurrence
parseFrom
(
byte
[]
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteString data)
public
static
Occurrence
parseFrom
(
ByteString
data
)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public
static
Occurrence
parseFrom
(
ByteString
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(CodedInputStream input)
public
static
Occurrence
parseFrom
(
CodedInputStream
input
)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Occurrence
parseFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(InputStream input)
public
static
Occurrence
parseFrom
(
InputStream
input
)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Occurrence
parseFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteBuffer data)
public
static
Occurrence
parseFrom
(
ByteBuffer
data
)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public
static
Occurrence
parseFrom
(
ByteBuffer
data
,
ExtensionRegistryLite
extensionRegistry
)
parser()
public
static
Parser<Occurrence>
parser
()
Methods
equals(Object obj)
public
boolean
equals
(
Object
obj
)
getAttestation()
public
AttestationOccurrence
getAttestation
()
Describes an attestation of an artifact.
.grafeas.v1.AttestationOccurrence attestation = 14;
getAttestationOrBuilder()
public
AttestationOccurrenceOrBuilder
getAttestationOrBuilder
()
Describes an attestation of an artifact.
.grafeas.v1.AttestationOccurrence attestation = 14;
getBuild()
public
BuildOccurrence
getBuild
()
Describes a verifiable build.
.grafeas.v1.BuildOccurrence build = 9;
getBuildOrBuilder()
public
BuildOccurrenceOrBuilder
getBuildOrBuilder
()
Describes a verifiable build.
.grafeas.v1.BuildOccurrence build = 9;
getCompliance()
public
ComplianceOccurrence
getCompliance
()
Describes a compliance violation on a linked resource.
.grafeas.v1.ComplianceOccurrence compliance = 16;
getComplianceOrBuilder()
public
ComplianceOccurrenceOrBuilder
getComplianceOrBuilder
()
Describes a compliance violation on a linked resource.
.grafeas.v1.ComplianceOccurrence compliance = 16;
getCreateTime()
public
Timestamp
getCreateTime
()
Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;
getCreateTimeOrBuilder()
public
TimestampOrBuilder
getCreateTimeOrBuilder
()
Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;
getDefaultInstanceForType()
public
Occurrence
getDefaultInstanceForType
()
getDeployment()
public
DeploymentOccurrence
getDeployment
()
Describes the deployment of an artifact on a runtime.
.grafeas.v1.DeploymentOccurrence deployment = 12;
getDeploymentOrBuilder()
public
DeploymentOccurrenceOrBuilder
getDeploymentOrBuilder
()
Describes the deployment of an artifact on a runtime.
.grafeas.v1.DeploymentOccurrence deployment = 12;
getDetailsCase()
public
Occurrence
.
DetailsCase
getDetailsCase
()
getDiscovery()
public
DiscoveryOccurrence
getDiscovery
()
Describes when a resource was discovered.
.grafeas.v1.DiscoveryOccurrence discovery = 13;
getDiscoveryOrBuilder()
public
DiscoveryOccurrenceOrBuilder
getDiscoveryOrBuilder
()
Describes when a resource was discovered.
.grafeas.v1.DiscoveryOccurrence discovery = 13;
getDsseAttestation()
public
DSSEAttestationOccurrence
getDsseAttestation
()
Describes an attestation of an artifact using dsse.
.grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17;
getDsseAttestationOrBuilder()
public
DSSEAttestationOccurrenceOrBuilder
getDsseAttestationOrBuilder
()
Describes an attestation of an artifact using dsse.
.grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17;
getEnvelope()
public
Envelope
getEnvelope
()
https://github.com/secure-systems-lab/dsse
.grafeas.v1.Envelope envelope = 18;
getEnvelopeOrBuilder()
public
EnvelopeOrBuilder
getEnvelopeOrBuilder
()
https://github.com/secure-systems-lab/dsse
.grafeas.v1.Envelope envelope = 18;
getImage()
public
ImageOccurrence
getImage
()
Describes how this resource derives from the basis in the associated note.
.grafeas.v1.ImageOccurrence image = 10;
getImageOrBuilder()
public
ImageOccurrenceOrBuilder
getImageOrBuilder
()
Describes how this resource derives from the basis in the associated note.
.grafeas.v1.ImageOccurrence image = 10;
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;
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;
getName()
public
String
getName
()
Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
.
string name = 1;
getNameBytes()
public
ByteString
getNameBytes
()
Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
.
string name = 1;
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;
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;
getPackage()
public
PackageOccurrence
getPackage
()
Describes the installation of a package on the linked resource.
.grafeas.v1.PackageOccurrence package = 11;
getPackageOrBuilder()
public
PackageOccurrenceOrBuilder
getPackageOrBuilder
()
Describes the installation of a package on the linked resource.
.grafeas.v1.PackageOccurrence package = 11;
getParserForType()
public
Parser<Occurrence>
getParserForType
()
getRemediation()
public
String
getRemediation
()
A description of actions that can be taken to remedy the note.
string remediation = 5;
getRemediationBytes()
public
ByteString
getRemediationBytes
()
A description of actions that can be taken to remedy the note.
string remediation = 5;
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;
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;
getSbomReference()
public
SBOMReferenceOccurrence
getSbomReference
()
Describes a specific SBOM reference occurrences.
.grafeas.v1.SBOMReferenceOccurrence sbom_reference = 19;
getSbomReferenceOrBuilder()
public
SBOMReferenceOccurrenceOrBuilder
getSbomReferenceOrBuilder
()
Describes a specific SBOM reference occurrences.
.grafeas.v1.SBOMReferenceOccurrence sbom_reference = 19;
getSecret()
public
SecretOccurrence
getSecret
()
Describes a secret.
.grafeas.v1.SecretOccurrence secret = 20;
getSecretOrBuilder()
public
SecretOccurrenceOrBuilder
getSecretOrBuilder
()
Describes a secret.
.grafeas.v1.SecretOccurrence secret = 20;
getSerializedSize()
public
int
getSerializedSize
()
getUpdateTime()
public
Timestamp
getUpdateTime
()
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;
getUpdateTimeOrBuilder()
public
TimestampOrBuilder
getUpdateTimeOrBuilder
()
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;
getUpgrade()
public
UpgradeOccurrence
getUpgrade
()
Describes an available package upgrade on the linked resource.
.grafeas.v1.UpgradeOccurrence upgrade = 15;
getUpgradeOrBuilder()
public
UpgradeOccurrenceOrBuilder
getUpgradeOrBuilder
()
Describes an available package upgrade on the linked resource.
.grafeas.v1.UpgradeOccurrence upgrade = 15;
getVulnerability()
public
VulnerabilityOccurrence
getVulnerability
()
Describes a security vulnerability.
.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;
getVulnerabilityOrBuilder()
public
VulnerabilityOccurrenceOrBuilder
getVulnerabilityOrBuilder
()
Describes a security vulnerability.
.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;
hasAttestation()
public
boolean
hasAttestation
()
Describes an attestation of an artifact.
.grafeas.v1.AttestationOccurrence attestation = 14;
hasBuild()
public
boolean
hasBuild
()
Describes a verifiable build.
.grafeas.v1.BuildOccurrence build = 9;
hasCompliance()
public
boolean
hasCompliance
()
Describes a compliance violation on a linked resource.
.grafeas.v1.ComplianceOccurrence compliance = 16;
hasCreateTime()
public
boolean
hasCreateTime
()
Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;
hasDeployment()
public
boolean
hasDeployment
()
Describes the deployment of an artifact on a runtime.
.grafeas.v1.DeploymentOccurrence deployment = 12;
hasDiscovery()
public
boolean
hasDiscovery
()
Describes when a resource was discovered.
.grafeas.v1.DiscoveryOccurrence discovery = 13;
hasDsseAttestation()
public
boolean
hasDsseAttestation
()
Describes an attestation of an artifact using dsse.
.grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17;
hasEnvelope()
public
boolean
hasEnvelope
()
https://github.com/secure-systems-lab/dsse
.grafeas.v1.Envelope envelope = 18;
hasImage()
public
boolean
hasImage
()
Describes how this resource derives from the basis in the associated note.
.grafeas.v1.ImageOccurrence image = 10;
hasPackage()
public
boolean
hasPackage
()
Describes the installation of a package on the linked resource.
.grafeas.v1.PackageOccurrence package = 11;
hasSbomReference()
public
boolean
hasSbomReference
()
Describes a specific SBOM reference occurrences.
.grafeas.v1.SBOMReferenceOccurrence sbom_reference = 19;
hasSecret()
public
boolean
hasSecret
()
Describes a secret.
.grafeas.v1.SecretOccurrence secret = 20;
hasUpdateTime()
public
boolean
hasUpdateTime
()
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;
hasUpgrade()
public
boolean
hasUpgrade
()
Describes an available package upgrade on the linked resource.
.grafeas.v1.UpgradeOccurrence upgrade = 15;
hasVulnerability()
public
boolean
hasVulnerability
()
Describes a security vulnerability.
.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;
hashCode()
public
int
hashCode
()
internalGetFieldAccessorTable()
protected
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
isInitialized()
public
final
boolean
isInitialized
()
newBuilderForType()
public
Occurrence
.
Builder
newBuilderForType
()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected
Occurrence
.
Builder
newBuilderForType
(
GeneratedMessageV3
.
BuilderParent
parent
)
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected
Object
newInstance
(
GeneratedMessageV3
.
UnusedPrivateParameter
unused
)
toBuilder()
public
Occurrence
.
Builder
toBuilder
()
writeTo(CodedOutputStream output)
public
void
writeTo
(
CodedOutputStream
output
)