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.UnusedPrivateParameterAbstractMessageLite.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, unknownFieldsmemoizedSizememoizedHashCode| 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic 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 MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class 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 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 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 OccurrenceOrBuilderpublic 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 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 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.v1.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.v1.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 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 Timestamp getCreateTime()
Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;getCreateTime in interface OccurrenceOrBuilderpublic 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 Timestamp getUpdateTime()
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;getUpdateTime in interface OccurrenceOrBuilderpublic 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.v1.VulnerabilityOccurrence vulnerability = 8;hasVulnerability in interface OccurrenceOrBuilderpublic VulnerabilityOccurrence getVulnerability()
Describes a security vulnerability.
.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;getVulnerability in interface OccurrenceOrBuilderpublic VulnerabilityOccurrenceOrBuilder getVulnerabilityOrBuilder()
Describes a security vulnerability.
.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;getVulnerabilityOrBuilder in interface OccurrenceOrBuilderpublic boolean hasBuild()
Describes a verifiable build.
.grafeas.v1.BuildOccurrence build = 9;hasBuild in interface OccurrenceOrBuilderpublic BuildOccurrence getBuild()
Describes a verifiable build.
.grafeas.v1.BuildOccurrence build = 9;getBuild in interface OccurrenceOrBuilderpublic BuildOccurrenceOrBuilder getBuildOrBuilder()
Describes a verifiable build.
.grafeas.v1.BuildOccurrence build = 9;getBuildOrBuilder in interface OccurrenceOrBuilderpublic boolean hasImage()
Describes how this resource derives from the basis in the associated note.
.grafeas.v1.ImageOccurrence image = 10;hasImage in interface OccurrenceOrBuilderpublic ImageOccurrence getImage()
Describes how this resource derives from the basis in the associated note.
.grafeas.v1.ImageOccurrence image = 10;getImage in interface OccurrenceOrBuilderpublic ImageOccurrenceOrBuilder getImageOrBuilder()
Describes how this resource derives from the basis in the associated note.
.grafeas.v1.ImageOccurrence image = 10;getImageOrBuilder in interface OccurrenceOrBuilderpublic boolean hasPackage()
Describes the installation of a package on the linked resource.
.grafeas.v1.PackageOccurrence package = 11;hasPackage in interface OccurrenceOrBuilderpublic PackageOccurrence getPackage()
Describes the installation of a package on the linked resource.
.grafeas.v1.PackageOccurrence package = 11;getPackage in interface OccurrenceOrBuilderpublic PackageOccurrenceOrBuilder getPackageOrBuilder()
Describes the installation of a package on the linked resource.
.grafeas.v1.PackageOccurrence package = 11;getPackageOrBuilder in interface OccurrenceOrBuilderpublic boolean hasDeployment()
Describes the deployment of an artifact on a runtime.
.grafeas.v1.DeploymentOccurrence deployment = 12;hasDeployment in interface OccurrenceOrBuilderpublic DeploymentOccurrence getDeployment()
Describes the deployment of an artifact on a runtime.
.grafeas.v1.DeploymentOccurrence deployment = 12;getDeployment in interface OccurrenceOrBuilderpublic DeploymentOccurrenceOrBuilder getDeploymentOrBuilder()
Describes the deployment of an artifact on a runtime.
.grafeas.v1.DeploymentOccurrence deployment = 12;getDeploymentOrBuilder in interface OccurrenceOrBuilderpublic boolean hasDiscovery()
Describes when a resource was discovered.
.grafeas.v1.DiscoveryOccurrence discovery = 13;hasDiscovery in interface OccurrenceOrBuilderpublic DiscoveryOccurrence getDiscovery()
Describes when a resource was discovered.
.grafeas.v1.DiscoveryOccurrence discovery = 13;getDiscovery in interface OccurrenceOrBuilderpublic DiscoveryOccurrenceOrBuilder getDiscoveryOrBuilder()
Describes when a resource was discovered.
.grafeas.v1.DiscoveryOccurrence discovery = 13;getDiscoveryOrBuilder in interface OccurrenceOrBuilderpublic boolean hasAttestation()
Describes an attestation of an artifact.
.grafeas.v1.AttestationOccurrence attestation = 14;hasAttestation in interface OccurrenceOrBuilderpublic AttestationOccurrence getAttestation()
Describes an attestation of an artifact.
.grafeas.v1.AttestationOccurrence attestation = 14;getAttestation in interface OccurrenceOrBuilderpublic AttestationOccurrenceOrBuilder getAttestationOrBuilder()
Describes an attestation of an artifact.
.grafeas.v1.AttestationOccurrence attestation = 14;getAttestationOrBuilder in interface OccurrenceOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Occurrence parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Occurrence parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Occurrence parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Occurrence parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Occurrence parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Occurrence parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Occurrence parseFrom(InputStream input) throws IOException
IOExceptionpublic static Occurrence parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Occurrence parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Occurrence parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Occurrence parseFrom(CodedInputStream input) throws IOException
IOExceptionpublic static Occurrence parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Occurrence.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Occurrence.Builder newBuilder()
public static Occurrence.Builder newBuilder(Occurrence prototype)
public Occurrence.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Occurrence.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Occurrence getDefaultInstance()
public static Parser<Occurrence> parser()
public Parser<Occurrence> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Occurrence getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.