Package io.grafeas.v1beta1
Class Occurrence
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.grafeas.v1beta1.Occurrence
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,OccurrenceOrBuilder,Serializable
@Generated
public final class Occurrence
extends com.google.protobuf.GeneratedMessage
implements OccurrenceOrBuilder
An instance of an analysis type that has been found on a resource.Protobuf type
grafeas.v1beta1.Occurrence- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn instance of an analysis type that has been found on a resource.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanDescribes an attestation of an artifact.Describes an attestation of an artifact.getBuild()Describes a verifiable build.Describes a verifiable build.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static OccurrenceDescribes the deployment of an artifact on a runtime.Describes the deployment of an artifact on a runtime.Describes how this resource derives from the basis in the associated note.Describes how this resource derives from the basis in the associated note.static final com.google.protobuf.Descriptors.DescriptorDescribes when a resource was discovered.Describes when a resource was discovered.Describes the installation of a package on the linked resource.Describes the installation of a package on the linked resource.getKind()Output only.intOutput only.getName()Output only.com.google.protobuf.ByteStringOutput only.Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.Parser<Occurrence>A description of actions that can be taken to remedy the note.com.google.protobuf.ByteStringA description of actions that can be taken to remedy the note.Required.Required.intcom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Describes a security vulnerability.Describes a security vulnerability.booleanDescribes an attestation of an artifact.booleanhasBuild()Describes a verifiable build.booleanOutput only.booleanDescribes the deployment of an artifact on a runtime.booleanDescribes how this resource derives from the basis in the associated note.booleanDescribes when a resource was discovered.inthashCode()booleanDescribes the installation of a package on the linked resource.booleanRequired.booleanOutput only.booleanDescribes a security vulnerability.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Occurrence.Builderstatic Occurrence.BuildernewBuilder(Occurrence prototype) protected Occurrence.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static OccurrenceparseDelimitedFrom(InputStream input) static OccurrenceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OccurrenceparseFrom(byte[] data) static OccurrenceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OccurrenceparseFrom(com.google.protobuf.ByteString data) static OccurrenceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OccurrenceparseFrom(com.google.protobuf.CodedInputStream input) static OccurrenceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OccurrenceparseFrom(InputStream input) static OccurrenceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OccurrenceparseFrom(ByteBuffer data) static OccurrenceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Occurrence>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
RESOURCE_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER- See Also:
-
NOTE_NAME_FIELD_NUMBER
public static final int NOTE_NAME_FIELD_NUMBER- See Also:
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER- See Also:
-
REMEDIATION_FIELD_NUMBER
public static final int REMEDIATION_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER- See Also:
-
VULNERABILITY_FIELD_NUMBER
public static final int VULNERABILITY_FIELD_NUMBER- See Also:
-
BUILD_FIELD_NUMBER
public static final int BUILD_FIELD_NUMBER- See Also:
-
DERIVED_IMAGE_FIELD_NUMBER
public static final int DERIVED_IMAGE_FIELD_NUMBER- See Also:
-
INSTALLATION_FIELD_NUMBER
public static final int INSTALLATION_FIELD_NUMBER- See Also:
-
DEPLOYMENT_FIELD_NUMBER
public static final int DEPLOYMENT_FIELD_NUMBER- See Also:
-
DISCOVERED_FIELD_NUMBER
public static final int DISCOVERED_FIELD_NUMBER- See Also:
-
ATTESTATION_FIELD_NUMBER
public static final int ATTESTATION_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getDetailsCase
- Specified by:
getDetailsCasein interfaceOccurrenceOrBuilder
-
getName
Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
string name = 1;- Specified by:
getNamein interfaceOccurrenceOrBuilder- Returns:
- The name.
-
getNameBytes
public 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;- Specified by:
getNameBytesin interfaceOccurrenceOrBuilder- Returns:
- The bytes for name.
-
hasResource
public boolean hasResource()Required. Immutable. The resource for which the occurrence applies.
.grafeas.v1beta1.Resource resource = 2;- Specified by:
hasResourcein interfaceOccurrenceOrBuilder- Returns:
- Whether the resource field is set.
-
getResource
Required. Immutable. The resource for which the occurrence applies.
.grafeas.v1beta1.Resource resource = 2;- Specified by:
getResourcein interfaceOccurrenceOrBuilder- Returns:
- The resource.
-
getResourceOrBuilder
Required. Immutable. The resource for which the occurrence applies.
.grafeas.v1beta1.Resource resource = 2;- Specified by:
getResourceOrBuilderin interfaceOccurrenceOrBuilder
-
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;- Specified by:
getNoteNamein interfaceOccurrenceOrBuilder- Returns:
- The noteName.
-
getNoteNameBytes
public 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;- Specified by:
getNoteNameBytesin interfaceOccurrenceOrBuilder- Returns:
- The bytes for noteName.
-
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;- Specified by:
getKindValuein interfaceOccurrenceOrBuilder- Returns:
- The enum numeric value on the wire for kind.
-
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;- Specified by:
getKindin interfaceOccurrenceOrBuilder- Returns:
- The kind.
-
getRemediation
A description of actions that can be taken to remedy the note.
string remediation = 5;- Specified by:
getRemediationin interfaceOccurrenceOrBuilder- Returns:
- The remediation.
-
getRemediationBytes
public com.google.protobuf.ByteString getRemediationBytes()A description of actions that can be taken to remedy the note.
string remediation = 5;- Specified by:
getRemediationBytesin interfaceOccurrenceOrBuilder- Returns:
- The bytes for remediation.
-
hasCreateTime
public boolean hasCreateTime()Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;- Specified by:
hasCreateTimein interfaceOccurrenceOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;- Specified by:
getCreateTimein interfaceOccurrenceOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;- Specified by:
getCreateTimeOrBuilderin interfaceOccurrenceOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;- Specified by:
hasUpdateTimein interfaceOccurrenceOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;- Specified by:
getUpdateTimein interfaceOccurrenceOrBuilder- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;- Specified by:
getUpdateTimeOrBuilderin interfaceOccurrenceOrBuilder
-
hasVulnerability
public boolean hasVulnerability()Describes a security vulnerability.
.grafeas.v1beta1.vulnerability.Details vulnerability = 8;- Specified by:
hasVulnerabilityin interfaceOccurrenceOrBuilder- Returns:
- Whether the vulnerability field is set.
-
getVulnerability
Describes a security vulnerability.
.grafeas.v1beta1.vulnerability.Details vulnerability = 8;- Specified by:
getVulnerabilityin interfaceOccurrenceOrBuilder- Returns:
- The vulnerability.
-
getVulnerabilityOrBuilder
Describes a security vulnerability.
.grafeas.v1beta1.vulnerability.Details vulnerability = 8;- Specified by:
getVulnerabilityOrBuilderin interfaceOccurrenceOrBuilder
-
hasBuild
public boolean hasBuild()Describes a verifiable build.
.grafeas.v1beta1.build.Details build = 9;- Specified by:
hasBuildin interfaceOccurrenceOrBuilder- Returns:
- Whether the build field is set.
-
getBuild
Describes a verifiable build.
.grafeas.v1beta1.build.Details build = 9;- Specified by:
getBuildin interfaceOccurrenceOrBuilder- Returns:
- The build.
-
getBuildOrBuilder
Describes a verifiable build.
.grafeas.v1beta1.build.Details build = 9;- Specified by:
getBuildOrBuilderin interfaceOccurrenceOrBuilder
-
hasDerivedImage
public boolean hasDerivedImage()Describes how this resource derives from the basis in the associated note.
.grafeas.v1beta1.image.Details derived_image = 10;- Specified by:
hasDerivedImagein interfaceOccurrenceOrBuilder- Returns:
- Whether the derivedImage field is set.
-
getDerivedImage
Describes how this resource derives from the basis in the associated note.
.grafeas.v1beta1.image.Details derived_image = 10;- Specified by:
getDerivedImagein interfaceOccurrenceOrBuilder- Returns:
- The derivedImage.
-
getDerivedImageOrBuilder
Describes how this resource derives from the basis in the associated note.
.grafeas.v1beta1.image.Details derived_image = 10;- Specified by:
getDerivedImageOrBuilderin interfaceOccurrenceOrBuilder
-
hasInstallation
public boolean hasInstallation()Describes the installation of a package on the linked resource.
.grafeas.v1beta1.package.Details installation = 11;- Specified by:
hasInstallationin interfaceOccurrenceOrBuilder- Returns:
- Whether the installation field is set.
-
getInstallation
Describes the installation of a package on the linked resource.
.grafeas.v1beta1.package.Details installation = 11;- Specified by:
getInstallationin interfaceOccurrenceOrBuilder- Returns:
- The installation.
-
getInstallationOrBuilder
Describes the installation of a package on the linked resource.
.grafeas.v1beta1.package.Details installation = 11;- Specified by:
getInstallationOrBuilderin interfaceOccurrenceOrBuilder
-
hasDeployment
public boolean hasDeployment()Describes the deployment of an artifact on a runtime.
.grafeas.v1beta1.deployment.Details deployment = 12;- Specified by:
hasDeploymentin interfaceOccurrenceOrBuilder- Returns:
- Whether the deployment field is set.
-
getDeployment
Describes the deployment of an artifact on a runtime.
.grafeas.v1beta1.deployment.Details deployment = 12;- Specified by:
getDeploymentin interfaceOccurrenceOrBuilder- Returns:
- The deployment.
-
getDeploymentOrBuilder
Describes the deployment of an artifact on a runtime.
.grafeas.v1beta1.deployment.Details deployment = 12;- Specified by:
getDeploymentOrBuilderin interfaceOccurrenceOrBuilder
-
hasDiscovered
public boolean hasDiscovered()Describes when a resource was discovered.
.grafeas.v1beta1.discovery.Details discovered = 13;- Specified by:
hasDiscoveredin interfaceOccurrenceOrBuilder- Returns:
- Whether the discovered field is set.
-
getDiscovered
Describes when a resource was discovered.
.grafeas.v1beta1.discovery.Details discovered = 13;- Specified by:
getDiscoveredin interfaceOccurrenceOrBuilder- Returns:
- The discovered.
-
getDiscoveredOrBuilder
Describes when a resource was discovered.
.grafeas.v1beta1.discovery.Details discovered = 13;- Specified by:
getDiscoveredOrBuilderin interfaceOccurrenceOrBuilder
-
hasAttestation
public boolean hasAttestation()Describes an attestation of an artifact.
.grafeas.v1beta1.attestation.Details attestation = 14;- Specified by:
hasAttestationin interfaceOccurrenceOrBuilder- Returns:
- Whether the attestation field is set.
-
getAttestation
Describes an attestation of an artifact.
.grafeas.v1beta1.attestation.Details attestation = 14;- Specified by:
getAttestationin interfaceOccurrenceOrBuilder- Returns:
- The attestation.
-
getAttestationOrBuilder
Describes an attestation of an artifact.
.grafeas.v1beta1.attestation.Details attestation = 14;- Specified by:
getAttestationOrBuilderin interfaceOccurrenceOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Occurrence parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Occurrence parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Occurrence parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Occurrence parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Occurrence parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Occurrence parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Occurrence parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Occurrence parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Occurrence parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Occurrence.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-