public final class Occurrence extends GeneratedMessageV3 implements OccurrenceOrBuilder
An instance of an analysis type that has been found on a resource.
Protobuf type grafeas.v1beta1.Occurrence
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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 | |
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 | |
DERIVED_IMAGE_FIELD_NUMBER
public static final int DERIVED_IMAGE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DISCOVERED_FIELD_NUMBER
public static final int DISCOVERED_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
INSTALLATION_FIELD_NUMBER
public static final int INSTALLATION_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 | |
public static final int REMEDIATION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
RESOURCE_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Occurrence.Builder newBuilder()
newBuilder(Occurrence prototype)
public static Occurrence.Builder newBuilder(Occurrence prototype)
public static Occurrence parseDelimitedFrom(InputStream input)
public static Occurrence parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Occurrence parseFrom(byte[] data)
Parameter |
---|
Name | Description |
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)
public static Occurrence parseFrom(CodedInputStream input)
public static Occurrence parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Occurrence parseFrom(InputStream input)
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)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getAttestation()
public Details getAttestation()
Describes an attestation of an artifact.
.grafeas.v1beta1.attestation.Details attestation = 14;
Returns |
---|
Type | Description |
Details | The attestation.
|
getAttestationOrBuilder()
public DetailsOrBuilder getAttestationOrBuilder()
Describes an attestation of an artifact.
.grafeas.v1beta1.attestation.Details attestation = 14;
getBuild()
public Details getBuild()
Describes a verifiable build.
.grafeas.v1beta1.build.Details build = 9;
Returns |
---|
Type | Description |
Details | The build.
|
getBuildOrBuilder()
public DetailsOrBuilder getBuildOrBuilder()
Describes a verifiable build.
.grafeas.v1beta1.build.Details build = 9;
getCreateTime()
public Timestamp getCreateTime()
Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;
Returns |
---|
Type | Description |
Timestamp | The createTime.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;
getDefaultInstanceForType()
public Occurrence getDefaultInstanceForType()
getDeployment()
public Details getDeployment()
Describes the deployment of an artifact on a runtime.
.grafeas.v1beta1.deployment.Details deployment = 12;
Returns |
---|
Type | Description |
Details | The deployment.
|
getDeploymentOrBuilder()
public DetailsOrBuilder getDeploymentOrBuilder()
Describes the deployment of an artifact on a runtime.
.grafeas.v1beta1.deployment.Details deployment = 12;
getDerivedImage()
public Details getDerivedImage()
Describes how this resource derives from the basis in the associated
note.
.grafeas.v1beta1.image.Details derived_image = 10;
Returns |
---|
Type | Description |
Details | The derivedImage.
|
getDerivedImageOrBuilder()
public DetailsOrBuilder getDerivedImageOrBuilder()
Describes how this resource derives from the basis in the associated
note.
.grafeas.v1beta1.image.Details derived_image = 10;
getDetailsCase()
public Occurrence.DetailsCase getDetailsCase()
getDiscovered()
public Details getDiscovered()
Describes when a resource was discovered.
.grafeas.v1beta1.discovery.Details discovered = 13;
Returns |
---|
Type | Description |
Details | The discovered.
|
getDiscoveredOrBuilder()
public DetailsOrBuilder getDiscoveredOrBuilder()
Describes when a resource was discovered.
.grafeas.v1beta1.discovery.Details discovered = 13;
getInstallation()
public Details getInstallation()
Describes the installation of a package on the linked resource.
.grafeas.v1beta1.package.Details installation = 11;
Returns |
---|
Type | Description |
Details | The installation.
|
getInstallationOrBuilder()
public DetailsOrBuilder getInstallationOrBuilder()
Describes the installation of a package on the linked resource.
.grafeas.v1beta1.package.Details installation = 11;
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.v1beta1.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.v1beta1.NoteKind kind = 4;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for kind.
|
getName()
Output only. The name of the occurrence in the form of
projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
.
string name = 1;
Returns |
---|
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;
Returns |
---|
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;
Returns |
---|
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;
Returns |
---|
Type | Description |
ByteString | The bytes for noteName.
|
getParserForType()
public Parser<Occurrence> getParserForType()
Overrides
public String getRemediation()
A description of actions that can be taken to remedy the note.
string remediation = 5;
Returns |
---|
Type | Description |
String | The remediation.
|
public ByteString getRemediationBytes()
A description of actions that can be taken to remedy the note.
string remediation = 5;
Returns |
---|
Type | Description |
ByteString | The bytes for remediation.
|
getResource()
public Resource getResource()
Required. Immutable. The resource for which the occurrence applies.
.grafeas.v1beta1.Resource resource = 2;
Returns |
---|
Type | Description |
Resource | The resource.
|
getResourceOrBuilder()
public ResourceOrBuilder getResourceOrBuilder()
Required. Immutable. The resource for which the occurrence applies.
.grafeas.v1beta1.Resource resource = 2;
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
getUpdateTime()
public Timestamp getUpdateTime()
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;
Returns |
---|
Type | Description |
Timestamp | The updateTime.
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;
getVulnerability()
public Details getVulnerability()
Describes a security vulnerability.
.grafeas.v1beta1.vulnerability.Details vulnerability = 8;
Returns |
---|
Type | Description |
Details | The vulnerability.
|
getVulnerabilityOrBuilder()
public DetailsOrBuilder getVulnerabilityOrBuilder()
Describes a security vulnerability.
.grafeas.v1beta1.vulnerability.Details vulnerability = 8;
hasAttestation()
public boolean hasAttestation()
Describes an attestation of an artifact.
.grafeas.v1beta1.attestation.Details attestation = 14;
Returns |
---|
Type | Description |
boolean | Whether the attestation field is set.
|
hasBuild()
public boolean hasBuild()
Describes a verifiable build.
.grafeas.v1beta1.build.Details build = 9;
Returns |
---|
Type | Description |
boolean | Whether the build field is set.
|
hasCreateTime()
public boolean hasCreateTime()
Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;
Returns |
---|
Type | Description |
boolean | Whether the createTime field is set.
|
hasDeployment()
public boolean hasDeployment()
Describes the deployment of an artifact on a runtime.
.grafeas.v1beta1.deployment.Details deployment = 12;
Returns |
---|
Type | Description |
boolean | Whether the deployment field is set.
|
hasDerivedImage()
public boolean hasDerivedImage()
Describes how this resource derives from the basis in the associated
note.
.grafeas.v1beta1.image.Details derived_image = 10;
Returns |
---|
Type | Description |
boolean | Whether the derivedImage field is set.
|
hasDiscovered()
public boolean hasDiscovered()
Describes when a resource was discovered.
.grafeas.v1beta1.discovery.Details discovered = 13;
Returns |
---|
Type | Description |
boolean | Whether the discovered field is set.
|
hasInstallation()
public boolean hasInstallation()
Describes the installation of a package on the linked resource.
.grafeas.v1beta1.package.Details installation = 11;
Returns |
---|
Type | Description |
boolean | Whether the installation field is set.
|
hasResource()
public boolean hasResource()
Required. Immutable. The resource for which the occurrence applies.
.grafeas.v1beta1.Resource resource = 2;
Returns |
---|
Type | Description |
boolean | Whether the resource 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 |
boolean | Whether the updateTime field is set.
|
hasVulnerability()
public boolean hasVulnerability()
Describes a security vulnerability.
.grafeas.v1beta1.vulnerability.Details vulnerability = 8;
Returns |
---|
Type | Description |
boolean | Whether the vulnerability field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Occurrence.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Occurrence.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Occurrence.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides