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
Modifier and Type | Class and Description |
---|---|
static class |
Occurrence.Builder
An instance of an analysis type that has been found on a resource.
|
static class |
Occurrence.DetailsCase |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
ATTESTATION_FIELD_NUMBER |
static int |
BUILD_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
DEPLOYMENT_FIELD_NUMBER |
static int |
DISCOVERY_FIELD_NUMBER |
static int |
IMAGE_FIELD_NUMBER |
static int |
KIND_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
NOTE_NAME_FIELD_NUMBER |
static int |
PACKAGE_FIELD_NUMBER |
static int |
REMEDIATION_FIELD_NUMBER |
static int |
RESOURCE_URI_FIELD_NUMBER |
static int |
UPDATE_TIME_FIELD_NUMBER |
static int |
VULNERABILITY_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
AttestationOccurrence |
getAttestation()
Describes an attestation of an artifact.
|
AttestationOccurrenceOrBuilder |
getAttestationOrBuilder()
Describes an attestation of an artifact.
|
BuildOccurrence |
getBuild()
Describes a verifiable build.
|
BuildOccurrenceOrBuilder |
getBuildOrBuilder()
Describes a verifiable build.
|
Timestamp |
getCreateTime()
Output only.
|
TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
static Occurrence |
getDefaultInstance() |
Occurrence |
getDefaultInstanceForType() |
DeploymentOccurrence |
getDeployment()
Describes the deployment of an artifact on a runtime.
|
DeploymentOccurrenceOrBuilder |
getDeploymentOrBuilder()
Describes the deployment of an artifact on a runtime.
|
static Descriptors.Descriptor |
getDescriptor() |
Occurrence.DetailsCase |
getDetailsCase() |
DiscoveryOccurrence |
getDiscovery()
Describes when a resource was discovered.
|
DiscoveryOccurrenceOrBuilder |
getDiscoveryOrBuilder()
Describes when a resource was discovered.
|
ImageOccurrence |
getImage()
Describes how this resource derives from the basis in the associated
note.
|
ImageOccurrenceOrBuilder |
getImageOrBuilder()
Describes how this resource derives from the basis in the associated
note.
|
NoteKind |
getKind()
Output only.
|
int |
getKindValue()
Output only.
|
String |
getName()
Output only.
|
ByteString |
getNameBytes()
Output only.
|
String |
getNoteName()
Required.
|
ByteString |
getNoteNameBytes()
Required.
|
PackageOccurrence |
getPackage()
Describes the installation of a package on the linked resource.
|
PackageOccurrenceOrBuilder |
getPackageOrBuilder()
Describes the installation of a package on the linked resource.
|
Parser<Occurrence> |
getParserForType() |
String |
getRemediation()
A description of actions that can be taken to remedy the note.
|
ByteString |
getRemediationBytes()
A description of actions that can be taken to remedy the note.
|
String |
getResourceUri()
Required.
|
ByteString |
getResourceUriBytes()
Required.
|
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
Timestamp |
getUpdateTime()
Output only.
|
TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
VulnerabilityOccurrence |
getVulnerability()
Describes a security vulnerability.
|
VulnerabilityOccurrenceOrBuilder |
getVulnerabilityOrBuilder()
Describes a security vulnerability.
|
boolean |
hasAttestation()
Describes an attestation of an artifact.
|
boolean |
hasBuild()
Describes a verifiable build.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasDeployment()
Describes the deployment of an artifact on a runtime.
|
boolean |
hasDiscovery()
Describes when a resource was discovered.
|
int |
hashCode() |
boolean |
hasImage()
Describes how this resource derives from the basis in the associated
note.
|
boolean |
hasPackage()
Describes the installation of a package on the linked resource.
|
boolean |
hasUpdateTime()
Output only.
|
boolean |
hasVulnerability()
Describes a security vulnerability.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Occurrence.Builder |
newBuilder() |
static Occurrence.Builder |
newBuilder(Occurrence prototype) |
Occurrence.Builder |
newBuilderForType() |
protected Occurrence.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static Occurrence |
parseDelimitedFrom(InputStream input) |
static Occurrence |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Occurrence |
parseFrom(byte[] data) |
static Occurrence |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Occurrence |
parseFrom(ByteBuffer data) |
static Occurrence |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Occurrence |
parseFrom(ByteString data) |
static Occurrence |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Occurrence |
parseFrom(CodedInputStream input) |
static Occurrence |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Occurrence |
parseFrom(InputStream input) |
static Occurrence |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Occurrence> |
parser() |
Occurrence.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NAME_FIELD_NUMBER
public static final int RESOURCE_URI_FIELD_NUMBER
public static final int NOTE_NAME_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
public static final int REMEDIATION_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
public static final int VULNERABILITY_FIELD_NUMBER
public static final int BUILD_FIELD_NUMBER
public static final int IMAGE_FIELD_NUMBER
public static final int PACKAGE_FIELD_NUMBER
public static final int DEPLOYMENT_FIELD_NUMBER
public static final int DISCOVERY_FIELD_NUMBER
public static final int ATTESTATION_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public Occurrence.DetailsCase getDetailsCase()
getDetailsCase
in interface OccurrenceOrBuilder
public String getName()
Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
string name = 1;
getName
in interface OccurrenceOrBuilder
public ByteString getNameBytes()
Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
string name = 1;
getNameBytes
in interface OccurrenceOrBuilder
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;
getResourceUri
in interface OccurrenceOrBuilder
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;
getResourceUriBytes
in interface OccurrenceOrBuilder
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;
getNoteName
in interface OccurrenceOrBuilder
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;
getNoteNameBytes
in interface OccurrenceOrBuilder
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;
getKindValue
in interface OccurrenceOrBuilder
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;
getKind
in interface OccurrenceOrBuilder
public String getRemediation()
A description of actions that can be taken to remedy the note.
string remediation = 5;
getRemediation
in interface OccurrenceOrBuilder
public ByteString getRemediationBytes()
A description of actions that can be taken to remedy the note.
string remediation = 5;
getRemediationBytes
in interface OccurrenceOrBuilder
public boolean hasCreateTime()
Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;
hasCreateTime
in interface OccurrenceOrBuilder
public Timestamp getCreateTime()
Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;
getCreateTime
in interface OccurrenceOrBuilder
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;
getCreateTimeOrBuilder
in interface OccurrenceOrBuilder
public boolean hasUpdateTime()
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;
hasUpdateTime
in interface OccurrenceOrBuilder
public Timestamp getUpdateTime()
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;
getUpdateTime
in interface OccurrenceOrBuilder
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;
getUpdateTimeOrBuilder
in interface OccurrenceOrBuilder
public boolean hasVulnerability()
Describes a security vulnerability.
.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;
hasVulnerability
in interface OccurrenceOrBuilder
public VulnerabilityOccurrence getVulnerability()
Describes a security vulnerability.
.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;
getVulnerability
in interface OccurrenceOrBuilder
public VulnerabilityOccurrenceOrBuilder getVulnerabilityOrBuilder()
Describes a security vulnerability.
.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;
getVulnerabilityOrBuilder
in interface OccurrenceOrBuilder
public boolean hasBuild()
Describes a verifiable build.
.grafeas.v1.BuildOccurrence build = 9;
hasBuild
in interface OccurrenceOrBuilder
public BuildOccurrence getBuild()
Describes a verifiable build.
.grafeas.v1.BuildOccurrence build = 9;
getBuild
in interface OccurrenceOrBuilder
public BuildOccurrenceOrBuilder getBuildOrBuilder()
Describes a verifiable build.
.grafeas.v1.BuildOccurrence build = 9;
getBuildOrBuilder
in interface OccurrenceOrBuilder
public boolean hasImage()
Describes how this resource derives from the basis in the associated note.
.grafeas.v1.ImageOccurrence image = 10;
hasImage
in interface OccurrenceOrBuilder
public ImageOccurrence getImage()
Describes how this resource derives from the basis in the associated note.
.grafeas.v1.ImageOccurrence image = 10;
getImage
in interface OccurrenceOrBuilder
public ImageOccurrenceOrBuilder getImageOrBuilder()
Describes how this resource derives from the basis in the associated note.
.grafeas.v1.ImageOccurrence image = 10;
getImageOrBuilder
in interface OccurrenceOrBuilder
public boolean hasPackage()
Describes the installation of a package on the linked resource.
.grafeas.v1.PackageOccurrence package = 11;
hasPackage
in interface OccurrenceOrBuilder
public PackageOccurrence getPackage()
Describes the installation of a package on the linked resource.
.grafeas.v1.PackageOccurrence package = 11;
getPackage
in interface OccurrenceOrBuilder
public PackageOccurrenceOrBuilder getPackageOrBuilder()
Describes the installation of a package on the linked resource.
.grafeas.v1.PackageOccurrence package = 11;
getPackageOrBuilder
in interface OccurrenceOrBuilder
public boolean hasDeployment()
Describes the deployment of an artifact on a runtime.
.grafeas.v1.DeploymentOccurrence deployment = 12;
hasDeployment
in interface OccurrenceOrBuilder
public DeploymentOccurrence getDeployment()
Describes the deployment of an artifact on a runtime.
.grafeas.v1.DeploymentOccurrence deployment = 12;
getDeployment
in interface OccurrenceOrBuilder
public DeploymentOccurrenceOrBuilder getDeploymentOrBuilder()
Describes the deployment of an artifact on a runtime.
.grafeas.v1.DeploymentOccurrence deployment = 12;
getDeploymentOrBuilder
in interface OccurrenceOrBuilder
public boolean hasDiscovery()
Describes when a resource was discovered.
.grafeas.v1.DiscoveryOccurrence discovery = 13;
hasDiscovery
in interface OccurrenceOrBuilder
public DiscoveryOccurrence getDiscovery()
Describes when a resource was discovered.
.grafeas.v1.DiscoveryOccurrence discovery = 13;
getDiscovery
in interface OccurrenceOrBuilder
public DiscoveryOccurrenceOrBuilder getDiscoveryOrBuilder()
Describes when a resource was discovered.
.grafeas.v1.DiscoveryOccurrence discovery = 13;
getDiscoveryOrBuilder
in interface OccurrenceOrBuilder
public boolean hasAttestation()
Describes an attestation of an artifact.
.grafeas.v1.AttestationOccurrence attestation = 14;
hasAttestation
in interface OccurrenceOrBuilder
public AttestationOccurrence getAttestation()
Describes an attestation of an artifact.
.grafeas.v1.AttestationOccurrence attestation = 14;
getAttestation
in interface OccurrenceOrBuilder
public AttestationOccurrenceOrBuilder getAttestationOrBuilder()
Describes an attestation of an artifact.
.grafeas.v1.AttestationOccurrence attestation = 14;
getAttestationOrBuilder
in interface OccurrenceOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Occurrence parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Occurrence parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Occurrence parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Occurrence parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Occurrence parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Occurrence parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Occurrence parseFrom(InputStream input) throws IOException
IOException
public static Occurrence parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Occurrence parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Occurrence parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Occurrence parseFrom(CodedInputStream input) throws IOException
IOException
public static Occurrence parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Occurrence.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Occurrence.Builder newBuilder()
public static Occurrence.Builder newBuilder(Occurrence prototype)
public Occurrence.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Occurrence.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Occurrence getDefaultInstance()
public static Parser<Occurrence> parser()
public Parser<Occurrence> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Occurrence getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2019 Google LLC. All rights reserved.