public final class Occurrence extends com.google.protobuf.GeneratedMessageV3 implements OccurrenceOrBuilder
An instance of an analysis type that has been found on a resource.Protobuf type
grafeas.v1beta1.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 |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| 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 |
DERIVED_IMAGE_FIELD_NUMBER |
static int |
DISCOVERED_FIELD_NUMBER |
static int |
INSTALLATION_FIELD_NUMBER |
static int |
KIND_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
NOTE_NAME_FIELD_NUMBER |
static int |
REMEDIATION_FIELD_NUMBER |
static int |
RESOURCE_FIELD_NUMBER |
static int |
UPDATE_TIME_FIELD_NUMBER |
static int |
VULNERABILITY_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Details |
getAttestation()
Describes an attestation of an artifact.
|
DetailsOrBuilder |
getAttestationOrBuilder()
Describes an attestation of an artifact.
|
Details |
getBuild()
Describes a verifiable build.
|
DetailsOrBuilder |
getBuildOrBuilder()
Describes a verifiable build.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
static Occurrence |
getDefaultInstance() |
Occurrence |
getDefaultInstanceForType() |
Details |
getDeployment()
Describes the deployment of an artifact on a runtime.
|
DetailsOrBuilder |
getDeploymentOrBuilder()
Describes the deployment of an artifact on a runtime.
|
Details |
getDerivedImage()
Describes how this resource derives from the basis in the associated
note.
|
DetailsOrBuilder |
getDerivedImageOrBuilder()
Describes how this resource derives from the basis in the associated
note.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Occurrence.DetailsCase |
getDetailsCase() |
Details |
getDiscovered()
Describes when a resource was discovered.
|
DetailsOrBuilder |
getDiscoveredOrBuilder()
Describes when a resource was discovered.
|
Details |
getInstallation()
Describes the installation of a package on the linked resource.
|
DetailsOrBuilder |
getInstallationOrBuilder()
Describes the installation of a package on the linked resource.
|
NoteKind |
getKind()
Output only.
|
int |
getKindValue()
Output only.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
String |
getNoteName()
Required.
|
com.google.protobuf.ByteString |
getNoteNameBytes()
Required.
|
com.google.protobuf.Parser<Occurrence> |
getParserForType() |
String |
getRemediation()
A description of actions that can be taken to remedy the note.
|
com.google.protobuf.ByteString |
getRemediationBytes()
A description of actions that can be taken to remedy the note.
|
Resource |
getResource()
Required.
|
ResourceOrBuilder |
getResourceOrBuilder()
Required.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
Details |
getVulnerability()
Describes a security vulnerability.
|
DetailsOrBuilder |
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 |
hasDerivedImage()
Describes how this resource derives from the basis in the associated
note.
|
boolean |
hasDiscovered()
Describes when a resource was discovered.
|
int |
hashCode() |
boolean |
hasInstallation()
Describes the installation of a package on the linked resource.
|
boolean |
hasResource()
Required.
|
boolean |
hasUpdateTime()
Output only.
|
boolean |
hasVulnerability()
Describes a security vulnerability.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Occurrence.Builder |
newBuilder() |
static Occurrence.Builder |
newBuilder(Occurrence prototype) |
Occurrence.Builder |
newBuilderForType() |
protected Occurrence.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Occurrence |
parseDelimitedFrom(InputStream input) |
static Occurrence |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Occurrence |
parseFrom(byte[] data) |
static Occurrence |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Occurrence |
parseFrom(ByteBuffer data) |
static Occurrence |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Occurrence |
parseFrom(com.google.protobuf.ByteString data) |
static Occurrence |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Occurrence |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Occurrence |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Occurrence |
parseFrom(InputStream input) |
static Occurrence |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Occurrence> |
parser() |
Occurrence.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int RESOURCE_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 DERIVED_IMAGE_FIELD_NUMBER
public static final int INSTALLATION_FIELD_NUMBER
public static final int DEPLOYMENT_FIELD_NUMBER
public static final int DISCOVERED_FIELD_NUMBER
public static final int ATTESTATION_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public Occurrence.DetailsCase getDetailsCase()
getDetailsCase in interface OccurrenceOrBuilderpublic 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 OccurrenceOrBuilderpublic com.google.protobuf.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 OccurrenceOrBuilderpublic boolean hasResource()
Required. Immutable. The resource for which the occurrence applies.
.grafeas.v1beta1.Resource resource = 2;hasResource in interface OccurrenceOrBuilderpublic Resource getResource()
Required. Immutable. The resource for which the occurrence applies.
.grafeas.v1beta1.Resource resource = 2;getResource in interface OccurrenceOrBuilderpublic ResourceOrBuilder getResourceOrBuilder()
Required. Immutable. The resource for which the occurrence applies.
.grafeas.v1beta1.Resource resource = 2;getResourceOrBuilder in interface OccurrenceOrBuilderpublic 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 OccurrenceOrBuilderpublic com.google.protobuf.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 OccurrenceOrBuilderpublic 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;getKindValue in interface OccurrenceOrBuilderpublic 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;getKind in interface OccurrenceOrBuilderpublic String getRemediation()
A description of actions that can be taken to remedy the note.
string remediation = 5;getRemediation in interface OccurrenceOrBuilderpublic com.google.protobuf.ByteString getRemediationBytes()
A description of actions that can be taken to remedy the note.
string remediation = 5;getRemediationBytes in interface OccurrenceOrBuilderpublic boolean hasCreateTime()
Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;hasCreateTime in interface OccurrenceOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;getCreateTime in interface OccurrenceOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;getCreateTimeOrBuilder in interface OccurrenceOrBuilderpublic boolean hasUpdateTime()
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;hasUpdateTime in interface OccurrenceOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;getUpdateTime in interface OccurrenceOrBuilderpublic com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;getUpdateTimeOrBuilder in interface OccurrenceOrBuilderpublic boolean hasVulnerability()
Describes a security vulnerability.
.grafeas.v1beta1.vulnerability.Details vulnerability = 8;hasVulnerability in interface OccurrenceOrBuilderpublic Details getVulnerability()
Describes a security vulnerability.
.grafeas.v1beta1.vulnerability.Details vulnerability = 8;getVulnerability in interface OccurrenceOrBuilderpublic DetailsOrBuilder getVulnerabilityOrBuilder()
Describes a security vulnerability.
.grafeas.v1beta1.vulnerability.Details vulnerability = 8;getVulnerabilityOrBuilder in interface OccurrenceOrBuilderpublic boolean hasBuild()
Describes a verifiable build.
.grafeas.v1beta1.build.Details build = 9;hasBuild in interface OccurrenceOrBuilderpublic Details getBuild()
Describes a verifiable build.
.grafeas.v1beta1.build.Details build = 9;getBuild in interface OccurrenceOrBuilderpublic DetailsOrBuilder getBuildOrBuilder()
Describes a verifiable build.
.grafeas.v1beta1.build.Details build = 9;getBuildOrBuilder in interface OccurrenceOrBuilderpublic boolean hasDerivedImage()
Describes how this resource derives from the basis in the associated note.
.grafeas.v1beta1.image.Details derived_image = 10;hasDerivedImage in interface OccurrenceOrBuilderpublic Details getDerivedImage()
Describes how this resource derives from the basis in the associated note.
.grafeas.v1beta1.image.Details derived_image = 10;getDerivedImage in interface OccurrenceOrBuilderpublic DetailsOrBuilder getDerivedImageOrBuilder()
Describes how this resource derives from the basis in the associated note.
.grafeas.v1beta1.image.Details derived_image = 10;getDerivedImageOrBuilder in interface OccurrenceOrBuilderpublic boolean hasInstallation()
Describes the installation of a package on the linked resource.
.grafeas.v1beta1.package.Details installation = 11;hasInstallation in interface OccurrenceOrBuilderpublic Details getInstallation()
Describes the installation of a package on the linked resource.
.grafeas.v1beta1.package.Details installation = 11;getInstallation in interface OccurrenceOrBuilderpublic DetailsOrBuilder getInstallationOrBuilder()
Describes the installation of a package on the linked resource.
.grafeas.v1beta1.package.Details installation = 11;getInstallationOrBuilder in interface OccurrenceOrBuilderpublic boolean hasDeployment()
Describes the deployment of an artifact on a runtime.
.grafeas.v1beta1.deployment.Details deployment = 12;hasDeployment in interface OccurrenceOrBuilderpublic Details getDeployment()
Describes the deployment of an artifact on a runtime.
.grafeas.v1beta1.deployment.Details deployment = 12;getDeployment in interface OccurrenceOrBuilderpublic DetailsOrBuilder getDeploymentOrBuilder()
Describes the deployment of an artifact on a runtime.
.grafeas.v1beta1.deployment.Details deployment = 12;getDeploymentOrBuilder in interface OccurrenceOrBuilderpublic boolean hasDiscovered()
Describes when a resource was discovered.
.grafeas.v1beta1.discovery.Details discovered = 13;hasDiscovered in interface OccurrenceOrBuilderpublic Details getDiscovered()
Describes when a resource was discovered.
.grafeas.v1beta1.discovery.Details discovered = 13;getDiscovered in interface OccurrenceOrBuilderpublic DetailsOrBuilder getDiscoveredOrBuilder()
Describes when a resource was discovered.
.grafeas.v1beta1.discovery.Details discovered = 13;getDiscoveredOrBuilder in interface OccurrenceOrBuilderpublic boolean hasAttestation()
Describes an attestation of an artifact.
.grafeas.v1beta1.attestation.Details attestation = 14;hasAttestation in interface OccurrenceOrBuilderpublic Details getAttestation()
Describes an attestation of an artifact.
.grafeas.v1beta1.attestation.Details attestation = 14;getAttestation in interface OccurrenceOrBuilderpublic DetailsOrBuilder getAttestationOrBuilder()
Describes an attestation of an artifact.
.grafeas.v1beta1.attestation.Details attestation = 14;getAttestationOrBuilder in interface OccurrenceOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Occurrence parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Occurrence parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Occurrence parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Occurrence parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Occurrence parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Occurrence parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Occurrence parseFrom(InputStream input) throws IOException
IOExceptionpublic static Occurrence parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Occurrence parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Occurrence parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Occurrence parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Occurrence parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Occurrence.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Occurrence.Builder newBuilder()
public static Occurrence.Builder newBuilder(Occurrence prototype)
public Occurrence.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Occurrence.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Occurrence getDefaultInstance()
public static com.google.protobuf.Parser<Occurrence> parser()
public com.google.protobuf.Parser<Occurrence> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Occurrence getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.