Package io.grafeas.v1beta1.vulnerability
Class Vulnerability.Detail
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.grafeas.v1beta1.vulnerability.Vulnerability.Detail
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Vulnerability.DetailOrBuilder,Serializable
- Enclosing class:
- Vulnerability
public static final class Vulnerability.Detail extends com.google.protobuf.GeneratedMessageV3 implements Vulnerability.DetailOrBuilder
Identifies all appearances of this vulnerability in the package for a specific distro/location. For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
Protobuf typegrafeas.v1beta1.vulnerability.Vulnerability.Detail- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVulnerability.Detail.BuilderIdentifies all appearances of this vulnerability in the package for a specific distro/location.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCPE_URI_FIELD_NUMBERstatic intDESCRIPTION_FIELD_NUMBERstatic intFIXED_LOCATION_FIELD_NUMBERstatic intIS_OBSOLETE_FIELD_NUMBERstatic intMAX_AFFECTED_VERSION_FIELD_NUMBERstatic intMIN_AFFECTED_VERSION_FIELD_NUMBERstatic intPACKAGE_FIELD_NUMBERstatic intPACKAGE_TYPE_FIELD_NUMBERstatic intSEVERITY_NAME_FIELD_NUMBERstatic intSOURCE_UPDATE_TIME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetCpeUri()Required.com.google.protobuf.ByteStringgetCpeUriBytes()Required.static Vulnerability.DetailgetDefaultInstance()Vulnerability.DetailgetDefaultInstanceForType()StringgetDescription()A vendor-specific description of this note.com.google.protobuf.ByteStringgetDescriptionBytes()A vendor-specific description of this note.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()VulnerabilityLocationgetFixedLocation()The fix for this specific package version.VulnerabilityLocationOrBuildergetFixedLocationOrBuilder()The fix for this specific package version.booleangetIsObsolete()Whether this detail is obsolete.VersiongetMaxAffectedVersion()The max version of the package in which the vulnerability exists.VersionOrBuildergetMaxAffectedVersionOrBuilder()The max version of the package in which the vulnerability exists.VersiongetMinAffectedVersion()The min version of the package in which the vulnerability exists.VersionOrBuildergetMinAffectedVersionOrBuilder()The min version of the package in which the vulnerability exists.StringgetPackage()Required.com.google.protobuf.ByteStringgetPackageBytes()Required.StringgetPackageType()The type of package; whether native or non native(ruby gems, node.js packages etc).com.google.protobuf.ByteStringgetPackageTypeBytes()The type of package; whether native or non native(ruby gems, node.js packages etc).com.google.protobuf.Parser<Vulnerability.Detail>getParserForType()intgetSerializedSize()StringgetSeverityName()The severity (eg: distro assigned severity) for this vulnerability.com.google.protobuf.ByteStringgetSeverityNameBytes()The severity (eg: distro assigned severity) for this vulnerability.com.google.protobuf.TimestampgetSourceUpdateTime()The time this information was last changed at the source.com.google.protobuf.TimestampOrBuildergetSourceUpdateTimeOrBuilder()The time this information was last changed at the source.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasFixedLocation()The fix for this specific package version.inthashCode()booleanhasMaxAffectedVersion()The max version of the package in which the vulnerability exists.booleanhasMinAffectedVersion()The min version of the package in which the vulnerability exists.booleanhasSourceUpdateTime()The time this information was last changed at the source.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Vulnerability.Detail.BuildernewBuilder()static Vulnerability.Detail.BuildernewBuilder(Vulnerability.Detail prototype)Vulnerability.Detail.BuildernewBuilderForType()protected Vulnerability.Detail.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Vulnerability.DetailparseDelimitedFrom(InputStream input)static Vulnerability.DetailparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Vulnerability.DetailparseFrom(byte[] data)static Vulnerability.DetailparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Vulnerability.DetailparseFrom(com.google.protobuf.ByteString data)static Vulnerability.DetailparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Vulnerability.DetailparseFrom(com.google.protobuf.CodedInputStream input)static Vulnerability.DetailparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Vulnerability.DetailparseFrom(InputStream input)static Vulnerability.DetailparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Vulnerability.DetailparseFrom(ByteBuffer data)static Vulnerability.DetailparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Vulnerability.Detail>parser()Vulnerability.Detail.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CPE_URI_FIELD_NUMBER
public static final int CPE_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PACKAGE_FIELD_NUMBER
public static final int PACKAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_AFFECTED_VERSION_FIELD_NUMBER
public static final int MIN_AFFECTED_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_AFFECTED_VERSION_FIELD_NUMBER
public static final int MAX_AFFECTED_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SEVERITY_NAME_FIELD_NUMBER
public static final int SEVERITY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FIXED_LOCATION_FIELD_NUMBER
public static final int FIXED_LOCATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PACKAGE_TYPE_FIELD_NUMBER
public static final int PACKAGE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IS_OBSOLETE_FIELD_NUMBER
public static final int IS_OBSOLETE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_UPDATE_TIME_FIELD_NUMBER
public static final int SOURCE_UPDATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getCpeUri
public String getCpeUri()
Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.
string cpe_uri = 1;- Specified by:
getCpeUriin interfaceVulnerability.DetailOrBuilder- Returns:
- The cpeUri.
-
getCpeUriBytes
public com.google.protobuf.ByteString getCpeUriBytes()
Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.
string cpe_uri = 1;- Specified by:
getCpeUriBytesin interfaceVulnerability.DetailOrBuilder- Returns:
- The bytes for cpeUri.
-
getPackage
public String getPackage()
Required. The name of the package where the vulnerability was found.
string package = 2;- Specified by:
getPackagein interfaceVulnerability.DetailOrBuilder- Returns:
- The package.
-
getPackageBytes
public com.google.protobuf.ByteString getPackageBytes()
Required. The name of the package where the vulnerability was found.
string package = 2;- Specified by:
getPackageBytesin interfaceVulnerability.DetailOrBuilder- Returns:
- The bytes for package.
-
hasMinAffectedVersion
public boolean hasMinAffectedVersion()
The min version of the package in which the vulnerability exists.
.grafeas.v1beta1.package.Version min_affected_version = 3;- Specified by:
hasMinAffectedVersionin interfaceVulnerability.DetailOrBuilder- Returns:
- Whether the minAffectedVersion field is set.
-
getMinAffectedVersion
public Version getMinAffectedVersion()
The min version of the package in which the vulnerability exists.
.grafeas.v1beta1.package.Version min_affected_version = 3;- Specified by:
getMinAffectedVersionin interfaceVulnerability.DetailOrBuilder- Returns:
- The minAffectedVersion.
-
getMinAffectedVersionOrBuilder
public VersionOrBuilder getMinAffectedVersionOrBuilder()
The min version of the package in which the vulnerability exists.
.grafeas.v1beta1.package.Version min_affected_version = 3;- Specified by:
getMinAffectedVersionOrBuilderin interfaceVulnerability.DetailOrBuilder
-
hasMaxAffectedVersion
public boolean hasMaxAffectedVersion()
The max version of the package in which the vulnerability exists.
.grafeas.v1beta1.package.Version max_affected_version = 4;- Specified by:
hasMaxAffectedVersionin interfaceVulnerability.DetailOrBuilder- Returns:
- Whether the maxAffectedVersion field is set.
-
getMaxAffectedVersion
public Version getMaxAffectedVersion()
The max version of the package in which the vulnerability exists.
.grafeas.v1beta1.package.Version max_affected_version = 4;- Specified by:
getMaxAffectedVersionin interfaceVulnerability.DetailOrBuilder- Returns:
- The maxAffectedVersion.
-
getMaxAffectedVersionOrBuilder
public VersionOrBuilder getMaxAffectedVersionOrBuilder()
The max version of the package in which the vulnerability exists.
.grafeas.v1beta1.package.Version max_affected_version = 4;- Specified by:
getMaxAffectedVersionOrBuilderin interfaceVulnerability.DetailOrBuilder
-
getSeverityName
public String getSeverityName()
The severity (eg: distro assigned severity) for this vulnerability.
string severity_name = 5;- Specified by:
getSeverityNamein interfaceVulnerability.DetailOrBuilder- Returns:
- The severityName.
-
getSeverityNameBytes
public com.google.protobuf.ByteString getSeverityNameBytes()
The severity (eg: distro assigned severity) for this vulnerability.
string severity_name = 5;- Specified by:
getSeverityNameBytesin interfaceVulnerability.DetailOrBuilder- Returns:
- The bytes for severityName.
-
getDescription
public String getDescription()
A vendor-specific description of this note.
string description = 6;- Specified by:
getDescriptionin interfaceVulnerability.DetailOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
A vendor-specific description of this note.
string description = 6;- Specified by:
getDescriptionBytesin interfaceVulnerability.DetailOrBuilder- Returns:
- The bytes for description.
-
hasFixedLocation
public boolean hasFixedLocation()
The fix for this specific package version.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;- Specified by:
hasFixedLocationin interfaceVulnerability.DetailOrBuilder- Returns:
- Whether the fixedLocation field is set.
-
getFixedLocation
public VulnerabilityLocation getFixedLocation()
The fix for this specific package version.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;- Specified by:
getFixedLocationin interfaceVulnerability.DetailOrBuilder- Returns:
- The fixedLocation.
-
getFixedLocationOrBuilder
public VulnerabilityLocationOrBuilder getFixedLocationOrBuilder()
The fix for this specific package version.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;- Specified by:
getFixedLocationOrBuilderin interfaceVulnerability.DetailOrBuilder
-
getPackageType
public String getPackageType()
The type of package; whether native or non native(ruby gems, node.js packages etc).
string package_type = 8;- Specified by:
getPackageTypein interfaceVulnerability.DetailOrBuilder- Returns:
- The packageType.
-
getPackageTypeBytes
public com.google.protobuf.ByteString getPackageTypeBytes()
The type of package; whether native or non native(ruby gems, node.js packages etc).
string package_type = 8;- Specified by:
getPackageTypeBytesin interfaceVulnerability.DetailOrBuilder- Returns:
- The bytes for packageType.
-
getIsObsolete
public boolean getIsObsolete()
Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
bool is_obsolete = 9;- Specified by:
getIsObsoletein interfaceVulnerability.DetailOrBuilder- Returns:
- The isObsolete.
-
hasSourceUpdateTime
public boolean hasSourceUpdateTime()
The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
.google.protobuf.Timestamp source_update_time = 10;- Specified by:
hasSourceUpdateTimein interfaceVulnerability.DetailOrBuilder- Returns:
- Whether the sourceUpdateTime field is set.
-
getSourceUpdateTime
public com.google.protobuf.Timestamp getSourceUpdateTime()
The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
.google.protobuf.Timestamp source_update_time = 10;- Specified by:
getSourceUpdateTimein interfaceVulnerability.DetailOrBuilder- Returns:
- The sourceUpdateTime.
-
getSourceUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getSourceUpdateTimeOrBuilder()
The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
.google.protobuf.Timestamp source_update_time = 10;- Specified by:
getSourceUpdateTimeOrBuilderin interfaceVulnerability.DetailOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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 Vulnerability.Detail parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Vulnerability.Detail parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Vulnerability.Detail parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Vulnerability.Detail parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Vulnerability.Detail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Vulnerability.Detail parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Vulnerability.Detail parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Vulnerability.Detail parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Vulnerability.Detail parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Vulnerability.Detail parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Vulnerability.Detail parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Vulnerability.Detail parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Vulnerability.Detail.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Vulnerability.Detail.Builder newBuilder()
-
newBuilder
public static Vulnerability.Detail.Builder newBuilder(Vulnerability.Detail prototype)
-
toBuilder
public Vulnerability.Detail.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Vulnerability.Detail.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Vulnerability.Detail getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Vulnerability.Detail> parser()
-
getParserForType
public com.google.protobuf.Parser<Vulnerability.Detail> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Vulnerability.Detail getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-