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 class
Vulnerability.Detail.Builder
Identifies 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 int
CPE_URI_FIELD_NUMBER
static int
DESCRIPTION_FIELD_NUMBER
static int
FIXED_LOCATION_FIELD_NUMBER
static int
IS_OBSOLETE_FIELD_NUMBER
static int
MAX_AFFECTED_VERSION_FIELD_NUMBER
static int
MIN_AFFECTED_VERSION_FIELD_NUMBER
static int
PACKAGE_FIELD_NUMBER
static int
PACKAGE_TYPE_FIELD_NUMBER
static int
SEVERITY_NAME_FIELD_NUMBER
static int
SOURCE_UPDATE_TIME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getCpeUri()
Required.com.google.protobuf.ByteString
getCpeUriBytes()
Required.static Vulnerability.Detail
getDefaultInstance()
Vulnerability.Detail
getDefaultInstanceForType()
String
getDescription()
A vendor-specific description of this note.com.google.protobuf.ByteString
getDescriptionBytes()
A vendor-specific description of this note.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
VulnerabilityLocation
getFixedLocation()
The fix for this specific package version.VulnerabilityLocationOrBuilder
getFixedLocationOrBuilder()
The fix for this specific package version.boolean
getIsObsolete()
Whether this detail is obsolete.Version
getMaxAffectedVersion()
The max version of the package in which the vulnerability exists.VersionOrBuilder
getMaxAffectedVersionOrBuilder()
The max version of the package in which the vulnerability exists.Version
getMinAffectedVersion()
The min version of the package in which the vulnerability exists.VersionOrBuilder
getMinAffectedVersionOrBuilder()
The min version of the package in which the vulnerability exists.String
getPackage()
Required.com.google.protobuf.ByteString
getPackageBytes()
Required.String
getPackageType()
The type of package; whether native or non native(ruby gems, node.js packages etc).com.google.protobuf.ByteString
getPackageTypeBytes()
The type of package; whether native or non native(ruby gems, node.js packages etc).com.google.protobuf.Parser<Vulnerability.Detail>
getParserForType()
int
getSerializedSize()
String
getSeverityName()
The severity (eg: distro assigned severity) for this vulnerability.com.google.protobuf.ByteString
getSeverityNameBytes()
The severity (eg: distro assigned severity) for this vulnerability.com.google.protobuf.Timestamp
getSourceUpdateTime()
The time this information was last changed at the source.com.google.protobuf.TimestampOrBuilder
getSourceUpdateTimeOrBuilder()
The time this information was last changed at the source.com.google.protobuf.UnknownFieldSet
getUnknownFields()
boolean
hasFixedLocation()
The fix for this specific package version.int
hashCode()
boolean
hasMaxAffectedVersion()
The max version of the package in which the vulnerability exists.boolean
hasMinAffectedVersion()
The min version of the package in which the vulnerability exists.boolean
hasSourceUpdateTime()
The time this information was last changed at the source.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Vulnerability.Detail.Builder
newBuilder()
static Vulnerability.Detail.Builder
newBuilder(Vulnerability.Detail prototype)
Vulnerability.Detail.Builder
newBuilderForType()
protected Vulnerability.Detail.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Vulnerability.Detail
parseDelimitedFrom(InputStream input)
static Vulnerability.Detail
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Vulnerability.Detail
parseFrom(byte[] data)
static Vulnerability.Detail
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Vulnerability.Detail
parseFrom(com.google.protobuf.ByteString data)
static Vulnerability.Detail
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Vulnerability.Detail
parseFrom(com.google.protobuf.CodedInputStream input)
static Vulnerability.Detail
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Vulnerability.Detail
parseFrom(InputStream input)
static Vulnerability.Detail
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Vulnerability.Detail
parseFrom(ByteBuffer data)
static Vulnerability.Detail
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Vulnerability.Detail>
parser()
Vulnerability.Detail.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
getCpeUri
in 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:
getCpeUriBytes
in 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:
getPackage
in 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:
getPackageBytes
in 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:
hasMinAffectedVersion
in 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:
getMinAffectedVersion
in 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:
getMinAffectedVersionOrBuilder
in 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:
hasMaxAffectedVersion
in 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:
getMaxAffectedVersion
in 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:
getMaxAffectedVersionOrBuilder
in interfaceVulnerability.DetailOrBuilder
-
getSeverityName
public String getSeverityName()
The severity (eg: distro assigned severity) for this vulnerability.
string severity_name = 5;
- Specified by:
getSeverityName
in 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:
getSeverityNameBytes
in interfaceVulnerability.DetailOrBuilder
- Returns:
- The bytes for severityName.
-
getDescription
public String getDescription()
A vendor-specific description of this note.
string description = 6;
- Specified by:
getDescription
in interfaceVulnerability.DetailOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
A vendor-specific description of this note.
string description = 6;
- Specified by:
getDescriptionBytes
in 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:
hasFixedLocation
in 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:
getFixedLocation
in 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:
getFixedLocationOrBuilder
in 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:
getPackageType
in 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:
getPackageTypeBytes
in 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:
getIsObsolete
in 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:
hasSourceUpdateTime
in 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:
getSourceUpdateTime
in 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:
getSourceUpdateTimeOrBuilder
in interfaceVulnerability.DetailOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Vulnerability.Detail.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Vulnerability.Detail getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-