- 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
Type | Description |
---|---|
int |
BUILD_FIELD_NUMBER
public
static
final
int
BUILD_FIELD_NUMBER
Type | Description |
---|---|
int |
COMPLIANCE_FIELD_NUMBER
public
static
final
int
COMPLIANCE_FIELD_NUMBER
Type | Description |
---|---|
int |
CREATE_TIME_FIELD_NUMBER
public
static
final
int
CREATE_TIME_FIELD_NUMBER
Type | Description |
---|---|
int |
DEPLOYMENT_FIELD_NUMBER
public
static
final
int
DEPLOYMENT_FIELD_NUMBER
Type | Description |
---|---|
int |
DISCOVERY_FIELD_NUMBER
public
static
final
int
DISCOVERY_FIELD_NUMBER
Type | Description |
---|---|
int |
DSSE_ATTESTATION_FIELD_NUMBER
public
static
final
int
DSSE_ATTESTATION_FIELD_NUMBER
Type | Description |
---|---|
int |
ENVELOPE_FIELD_NUMBER
public
static
final
int
ENVELOPE_FIELD_NUMBER
Type | Description |
---|---|
int |
IMAGE_FIELD_NUMBER
public
static
final
int
IMAGE_FIELD_NUMBER
Type | Description |
---|---|
int |
KIND_FIELD_NUMBER
public
static
final
int
KIND_FIELD_NUMBER
Type | Description |
---|---|
int |
NAME_FIELD_NUMBER
public
static
final
int
NAME_FIELD_NUMBER
Type | Description |
---|---|
int |
NOTE_NAME_FIELD_NUMBER
public
static
final
int
NOTE_NAME_FIELD_NUMBER
Type | Description |
---|---|
int |
PACKAGE_FIELD_NUMBER
public
static
final
int
PACKAGE_FIELD_NUMBER
Type | Description |
---|---|
int |
REMEDIATION_FIELD_NUMBER
public
static
final
int
REMEDIATION_FIELD_NUMBER
Type | Description |
---|---|
int |
RESOURCE_URI_FIELD_NUMBER
public
static
final
int
RESOURCE_URI_FIELD_NUMBER
Type | Description |
---|---|
int |
UPDATE_TIME_FIELD_NUMBER
public
static
final
int
UPDATE_TIME_FIELD_NUMBER
Type | Description |
---|---|
int |
UPGRADE_FIELD_NUMBER
public
static
final
int
UPGRADE_FIELD_NUMBER
Type | Description |
---|---|
int |
VULNERABILITY_FIELD_NUMBER
public
static
final
int
VULNERABILITY_FIELD_NUMBER
Type | Description |
---|---|
int |
Static Methods
getDefaultInstance()
public
static
Occurrence
getDefaultInstance
()
Type | Description |
---|---|
Occurrence |
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
Type | Description |
---|---|
Descriptor |
newBuilder()
public
static
Occurrence
.
Builder
newBuilder
()
Type | Description |
---|---|
Occurrence.Builder |
newBuilder(Occurrence prototype)
public
static
Occurrence
.
Builder
newBuilder
(
Occurrence
prototype
)
Name | Description |
---|---|
prototype | Occurrence
|
Type | Description |
---|---|
Occurrence.Builder |
parseDelimitedFrom(InputStream input)
public
static
Occurrence
parseDelimitedFrom
(
InputStream
input
)
Name | Description |
---|---|
input | InputStream
|
Type | Description |
---|---|
Occurrence |
Type | Description |
---|---|
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Occurrence
parseDelimitedFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
Name | Description |
input | InputStream
|
extensionRegistry | ExtensionRegistryLite
|
Type | Description |
---|---|
Occurrence |
Type | Description |
---|---|
IOException |
parseFrom(byte[] data)
public
static
Occurrence
parseFrom
(
byte
[]
data
)
Name | Description |
---|---|
data | byte
[]
|
Type | Description |
---|---|
Occurrence |
Type | Description |
---|---|
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public
static
Occurrence
parseFrom
(
byte
[]
data
,
ExtensionRegistryLite
extensionRegistry
)
Name | Description |
data | byte
[]
|
extensionRegistry | ExtensionRegistryLite
|
Type | Description |
---|---|
Occurrence |
Type | Description |
---|---|
InvalidProtocolBufferException |
parseFrom(ByteString data)
public
static
Occurrence
parseFrom
(
ByteString
data
)
Name | Description |
---|---|
data | ByteString
|
Type | Description |
---|---|
Occurrence |
Type | Description |
---|---|
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public
static
Occurrence
parseFrom
(
ByteString
data
,
ExtensionRegistryLite
extensionRegistry
)
Name | Description |
data | ByteString
|
extensionRegistry | ExtensionRegistryLite
|
Type | Description |
---|---|
Occurrence |
Type | Description |
---|---|
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public
static
Occurrence
parseFrom
(
CodedInputStream
input
)
Name | Description |
---|---|
input | CodedInputStream
|
Type | Description |
---|---|
Occurrence |
Type | Description |
---|---|
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Occurrence
parseFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
Name | Description |
input | CodedInputStream
|
extensionRegistry | ExtensionRegistryLite
|
Type | Description |
---|---|
Occurrence |
Type | Description |
---|---|
IOException |
parseFrom(InputStream input)
public
static
Occurrence
parseFrom
(
InputStream
input
)
Name | Description |
---|---|
input | InputStream
|
Type | Description |
---|---|
Occurrence |
Type | Description |
---|---|
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Occurrence
parseFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
Name | Description |
input | InputStream
|
extensionRegistry | ExtensionRegistryLite
|
Type | Description |
---|---|
Occurrence |
Type | Description |
---|---|
IOException |
parseFrom(ByteBuffer data)
public
static
Occurrence
parseFrom
(
ByteBuffer
data
)
Name | Description |
---|---|
data | ByteBuffer
|
Type | Description |
---|---|
Occurrence |
Type | Description |
---|---|
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public
static
Occurrence
parseFrom
(
ByteBuffer
data
,
ExtensionRegistryLite
extensionRegistry
)
Name | Description |
data | ByteBuffer
|
extensionRegistry | ExtensionRegistryLite
|
Type | Description |
---|---|
Occurrence |
Type | Description |
---|---|
InvalidProtocolBufferException |
parser()
public
static
Parser<Occurrence>
parser
()
Type | Description |
---|---|
Parser < Occurrence > |
Methods
equals(Object obj)
public
boolean
equals
(
Object
obj
)
Name | Description |
---|---|
obj | Object
|
Type | Description |
---|---|
boolean |
getAttestation()
public
AttestationOccurrence
getAttestation
()
Describes an attestation of an artifact.
.grafeas.v1.AttestationOccurrence attestation = 14;
Type | Description |
---|---|
AttestationOccurrence | The attestation. |
getAttestationOrBuilder()
public
AttestationOccurrenceOrBuilder
getAttestationOrBuilder
()
Describes an attestation of an artifact.
.grafeas.v1.AttestationOccurrence attestation = 14;
Type | Description |
---|---|
AttestationOccurrenceOrBuilder |
getBuild()
public
BuildOccurrence
getBuild
()
Describes a verifiable build.
.grafeas.v1.BuildOccurrence build = 9;
Type | Description |
---|---|
BuildOccurrence | The build. |
getBuildOrBuilder()
public
BuildOccurrenceOrBuilder
getBuildOrBuilder
()
Describes a verifiable build.
.grafeas.v1.BuildOccurrence build = 9;
Type | Description |
---|---|
BuildOccurrenceOrBuilder |
getCompliance()
public
ComplianceOccurrence
getCompliance
()
Describes a compliance violation on a linked resource.
.grafeas.v1.ComplianceOccurrence compliance = 16;
Type | Description |
---|---|
ComplianceOccurrence | The compliance. |
getComplianceOrBuilder()
public
ComplianceOccurrenceOrBuilder
getComplianceOrBuilder
()
Describes a compliance violation on a linked resource.
.grafeas.v1.ComplianceOccurrence compliance = 16;
Type | Description |
---|---|
ComplianceOccurrenceOrBuilder |
getCreateTime()
public
Timestamp
getCreateTime
()
Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;
Type | Description |
---|---|
Timestamp | The createTime. |
getCreateTimeOrBuilder()
public
TimestampOrBuilder
getCreateTimeOrBuilder
()
Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;
Type | Description |
---|---|
TimestampOrBuilder |
getDefaultInstanceForType()
public
Occurrence
getDefaultInstanceForType
()
Type | Description |
---|---|
Occurrence |
getDeployment()
public
DeploymentOccurrence
getDeployment
()
Describes the deployment of an artifact on a runtime.
.grafeas.v1.DeploymentOccurrence deployment = 12;
Type | Description |
---|---|
DeploymentOccurrence | The deployment. |
getDeploymentOrBuilder()
public
DeploymentOccurrenceOrBuilder
getDeploymentOrBuilder
()
Describes the deployment of an artifact on a runtime.
.grafeas.v1.DeploymentOccurrence deployment = 12;
Type | Description |
---|---|
DeploymentOccurrenceOrBuilder |
getDetailsCase()
public
Occurrence
.
DetailsCase
getDetailsCase
()
Type | Description |
---|---|
Occurrence.DetailsCase |
getDiscovery()
public
DiscoveryOccurrence
getDiscovery
()
Describes when a resource was discovered.
.grafeas.v1.DiscoveryOccurrence discovery = 13;
Type | Description |
---|---|
DiscoveryOccurrence | The discovery. |
getDiscoveryOrBuilder()
public
DiscoveryOccurrenceOrBuilder
getDiscoveryOrBuilder
()
Describes when a resource was discovered.
.grafeas.v1.DiscoveryOccurrence discovery = 13;
Type | Description |
---|---|
DiscoveryOccurrenceOrBuilder |
getDsseAttestation()
public
DSSEAttestationOccurrence
getDsseAttestation
()
Describes an attestation of an artifact using dsse.
.grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17;
Type | Description |
---|---|
DSSEAttestationOccurrence | The dsseAttestation. |
getDsseAttestationOrBuilder()
public
DSSEAttestationOccurrenceOrBuilder
getDsseAttestationOrBuilder
()
Describes an attestation of an artifact using dsse.
.grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17;
Type | Description |
---|---|
DSSEAttestationOccurrenceOrBuilder |
getEnvelope()
public
Envelope
getEnvelope
()
https://github.com/secure-systems-lab/dsse
.grafeas.v1.Envelope envelope = 18;
Type | Description |
---|---|
Envelope | The envelope. |
getEnvelopeOrBuilder()
public
EnvelopeOrBuilder
getEnvelopeOrBuilder
()
https://github.com/secure-systems-lab/dsse
.grafeas.v1.Envelope envelope = 18;
Type | Description |
---|---|
EnvelopeOrBuilder |
getImage()
public
ImageOccurrence
getImage
()
Describes how this resource derives from the basis in the associated note.
.grafeas.v1.ImageOccurrence image = 10;
Type | Description |
---|---|
ImageOccurrence | The image. |
getImageOrBuilder()
public
ImageOccurrenceOrBuilder
getImageOrBuilder
()
Describes how this resource derives from the basis in the associated note.
.grafeas.v1.ImageOccurrence image = 10;
Type | Description |
---|---|
ImageOccurrenceOrBuilder |
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;
Type | Description |
---|---|
NoteKind | 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;
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;
Type | Description |
---|---|
String | 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;
Type | Description |
---|---|
ByteString | 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;
Type | Description |
---|---|
String | 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;
Type | Description |
---|---|
ByteString | The bytes for noteName. |
getPackage()
public
PackageOccurrence
getPackage
()
Describes the installation of a package on the linked resource.
.grafeas.v1.PackageOccurrence package = 11;
Type | Description |
---|---|
PackageOccurrence | The package. |
getPackageOrBuilder()
public
PackageOccurrenceOrBuilder
getPackageOrBuilder
()
Describes the installation of a package on the linked resource.
.grafeas.v1.PackageOccurrence package = 11;
Type | Description |
---|---|
PackageOccurrenceOrBuilder |
getParserForType()
public
Parser<Occurrence>
getParserForType
()
Type | Description |
---|---|
Parser < Occurrence > |
getRemediation()
public
String
getRemediation
()
A description of actions that can be taken to remedy the note.
string remediation = 5;
Type | Description |
---|---|
String | The remediation. |
getRemediationBytes()
public
ByteString
getRemediationBytes
()
A description of actions that can be taken to remedy the note.
string remediation = 5;
Type | Description |
ByteString | 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;
Type | Description |
---|---|
String | 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;
Type | Description |
ByteString | The bytes for resourceUri. |
getSerializedSize()
public
int
getSerializedSize
()
Type | Description |
---|---|
int |
getUnknownFields()
public
final
UnknownFieldSet
getUnknownFields
()
Type | Description |
---|---|
UnknownFieldSet |
getUpdateTime()
public
Timestamp
getUpdateTime
()
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;
Type | Description |
---|---|
Timestamp | The updateTime. |
getUpdateTimeOrBuilder()
public
TimestampOrBuilder
getUpdateTimeOrBuilder
()
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;
Type | Description |
---|---|
TimestampOrBuilder |
getUpgrade()
public
UpgradeOccurrence
getUpgrade
()
Describes an available package upgrade on the linked resource.
.grafeas.v1.UpgradeOccurrence upgrade = 15;
Type | Description |
---|---|
UpgradeOccurrence | The upgrade. |
getUpgradeOrBuilder()
public
UpgradeOccurrenceOrBuilder
getUpgradeOrBuilder
()
Describes an available package upgrade on the linked resource.
.grafeas.v1.UpgradeOccurrence upgrade = 15;
Type | Description |
---|---|
UpgradeOccurrenceOrBuilder |
getVulnerability()
public
VulnerabilityOccurrence
getVulnerability
()
Describes a security vulnerability.
.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;
Type | Description |
---|---|
VulnerabilityOccurrence | The vulnerability. |
getVulnerabilityOrBuilder()
public
VulnerabilityOccurrenceOrBuilder
getVulnerabilityOrBuilder
()
Describes a security vulnerability.
.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;
Type | Description |
---|---|
VulnerabilityOccurrenceOrBuilder |
hasAttestation()
public
boolean
hasAttestation
()
Describes an attestation of an artifact.
.grafeas.v1.AttestationOccurrence attestation = 14;
Type | Description |
boolean | Whether the attestation field is set. |
hasBuild()
public
boolean
hasBuild
()
Describes a verifiable build.
.grafeas.v1.BuildOccurrence build = 9;
Type | Description |
boolean | Whether the build field is set. |
hasCompliance()
public
boolean
hasCompliance
()
Describes a compliance violation on a linked resource.
.grafeas.v1.ComplianceOccurrence compliance = 16;
Type | Description |
boolean | Whether the compliance field is set. |
hasCreateTime()
public
boolean
hasCreateTime
()
Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;
Type | Description |
boolean | Whether the createTime field is set. |
hasDeployment()
public
boolean
hasDeployment
()
Describes the deployment of an artifact on a runtime.
.grafeas.v1.DeploymentOccurrence deployment = 12;
Type | Description |
boolean | Whether the deployment field is set. |
hasDiscovery()
public
boolean
hasDiscovery
()
Describes when a resource was discovered.
.grafeas.v1.DiscoveryOccurrence discovery = 13;
Type | Description |
boolean | Whether the discovery field is set. |
hasDsseAttestation()
public
boolean
hasDsseAttestation
()
Describes an attestation of an artifact using dsse.
.grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17;
Type | Description |
boolean | Whether the dsseAttestation field is set. |
hasEnvelope()
public
boolean
hasEnvelope
()
https://github.com/secure-systems-lab/dsse
.grafeas.v1.Envelope envelope = 18;
Type | Description |
boolean | 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;
Type | Description |
boolean | 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;
Type | Description |
boolean | 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;
Type | Description |
boolean | Whether the updateTime field is set. |
hasUpgrade()
public
boolean
hasUpgrade
()
Describes an available package upgrade on the linked resource.
.grafeas.v1.UpgradeOccurrence upgrade = 15;
Type | Description |
boolean | Whether the upgrade field is set. |
hasVulnerability()
public
boolean
hasVulnerability
()
Describes a security vulnerability.
.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;
Type | Description |
boolean | Whether the vulnerability field is set. |
hashCode()
public
int
hashCode
()
Type | Description |
---|---|
int |
internalGetFieldAccessorTable()
protected
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
Type | Description |
---|---|
FieldAccessorTable |
isInitialized()
public
final
boolean
isInitialized
()
Type | Description |
---|---|
boolean |
newBuilderForType()
public
Occurrence
.
Builder
newBuilderForType
()
Type | Description |
---|---|
Occurrence.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected
Occurrence
.
Builder
newBuilderForType
(
GeneratedMessageV3
.
BuilderParent
parent
)
Name | Description |
---|---|
parent | BuilderParent
|
Type | Description |
---|---|
Occurrence.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected
Object
newInstance
(
GeneratedMessageV3
.
UnusedPrivateParameter
unused
)
Name | Description |
unused | UnusedPrivateParameter
|
Type | Description |
---|---|
Object |
toBuilder()
public
Occurrence
.
Builder
toBuilder
()
Type | Description |
---|---|
Occurrence.Builder |
writeTo(CodedOutputStream output)
public
void
writeTo
(
CodedOutputStream
output
)
Name | Description |
---|---|
output | CodedOutputStream
|
Type | Description |
---|---|
IOException |