Package io.grafeas.v1beta1.vulnerability
Class Vulnerability.Detail.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Vulnerability.Detail.Builder>
io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Vulnerability.DetailOrBuilder,Cloneable
- Enclosing class:
- Vulnerability.Detail
public static final class Vulnerability.Detail.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Vulnerability.Detail.Builder>
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.2Protobuf type
grafeas.v1beta1.vulnerability.Vulnerability.Detail-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.A vendor-specific description of this note.The fix for this specific package version.Whether this detail is obsolete.The max version of the package in which the vulnerability exists.The min version of the package in which the vulnerability exists.Required.The type of package; whether native or non native(ruby gems, node.js packages etc).The severity (eg: distro assigned severity) for this vulnerability.The time this information was last changed at the source.Required.com.google.protobuf.ByteStringRequired.A vendor-specific description of this note.com.google.protobuf.ByteStringA vendor-specific description of this note.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe fix for this specific package version.The fix for this specific package version.The fix for this specific package version.booleanWhether this detail is obsolete.The max version of the package in which the vulnerability exists.The max version of the package in which the vulnerability exists.The max version of the package in which the vulnerability exists.The min version of the package in which the vulnerability exists.The min version of the package in which the vulnerability exists.The min version of the package in which the vulnerability exists.Required.com.google.protobuf.ByteStringRequired.The type of package; whether native or non native(ruby gems, node.js packages etc).com.google.protobuf.ByteStringThe type of package; whether native or non native(ruby gems, node.js packages etc).The severity (eg: distro assigned severity) for this vulnerability.com.google.protobuf.ByteStringThe severity (eg: distro assigned severity) for this vulnerability.com.google.protobuf.TimestampThe time this information was last changed at the source.com.google.protobuf.Timestamp.BuilderThe time this information was last changed at the source.com.google.protobuf.TimestampOrBuilderThe time this information was last changed at the source.booleanThe fix for this specific package version.booleanThe max version of the package in which the vulnerability exists.booleanThe min version of the package in which the vulnerability exists.booleanThe time this information was last changed at the source.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe fix for this specific package version.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Vulnerability.Detail other) mergeMaxAffectedVersion(Version value) The max version of the package in which the vulnerability exists.mergeMinAffectedVersion(Version value) The min version of the package in which the vulnerability exists.mergeSourceUpdateTime(com.google.protobuf.Timestamp value) The time this information was last changed at the source.Required.setCpeUriBytes(com.google.protobuf.ByteString value) Required.setDescription(String value) A vendor-specific description of this note.setDescriptionBytes(com.google.protobuf.ByteString value) A vendor-specific description of this note.The fix for this specific package version.setFixedLocation(VulnerabilityLocation.Builder builderForValue) The fix for this specific package version.setIsObsolete(boolean value) Whether this detail is obsolete.setMaxAffectedVersion(Version value) The max version of the package in which the vulnerability exists.setMaxAffectedVersion(Version.Builder builderForValue) The max version of the package in which the vulnerability exists.setMinAffectedVersion(Version value) The min version of the package in which the vulnerability exists.setMinAffectedVersion(Version.Builder builderForValue) The min version of the package in which the vulnerability exists.setPackage(String value) Required.setPackageBytes(com.google.protobuf.ByteString value) Required.setPackageType(String value) The type of package; whether native or non native(ruby gems, node.js packages etc).setPackageTypeBytes(com.google.protobuf.ByteString value) The type of package; whether native or non native(ruby gems, node.js packages etc).setSeverityName(String value) The severity (eg: distro assigned severity) for this vulnerability.setSeverityNameBytes(com.google.protobuf.ByteString value) The severity (eg: distro assigned severity) for this vulnerability.setSourceUpdateTime(com.google.protobuf.Timestamp value) The time this information was last changed at the source.setSourceUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) The time this information was last changed at the source.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<Vulnerability.Detail.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Vulnerability.Detail.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Vulnerability.Detail.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Vulnerability.Detail.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Vulnerability.Detail.Builder>
-
mergeFrom
public Vulnerability.Detail.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Vulnerability.Detail.Builder>- Throws:
IOException
-
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.
-
setCpeUri
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;- Parameters:
value- The cpeUri to set.- Returns:
- This builder for chaining.
-
clearCpeUri
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;- Returns:
- This builder for chaining.
-
setCpeUriBytes
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;- Parameters:
value- The bytes for cpeUri to set.- Returns:
- This builder for chaining.
-
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.
-
setPackage
Required. The name of the package where the vulnerability was found.
string package = 2;- Parameters:
value- The package to set.- Returns:
- This builder for chaining.
-
clearPackage
Required. The name of the package where the vulnerability was found.
string package = 2;- Returns:
- This builder for chaining.
-
setPackageBytes
Required. The name of the package where the vulnerability was found.
string package = 2;- Parameters:
value- The bytes for package to set.- Returns:
- This builder for chaining.
-
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
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.
-
setMinAffectedVersion
The min version of the package in which the vulnerability exists.
.grafeas.v1beta1.package.Version min_affected_version = 3; -
setMinAffectedVersion
The min version of the package in which the vulnerability exists.
.grafeas.v1beta1.package.Version min_affected_version = 3; -
mergeMinAffectedVersion
The min version of the package in which the vulnerability exists.
.grafeas.v1beta1.package.Version min_affected_version = 3; -
clearMinAffectedVersion
The min version of the package in which the vulnerability exists.
.grafeas.v1beta1.package.Version min_affected_version = 3; -
getMinAffectedVersionBuilder
The min version of the package in which the vulnerability exists.
.grafeas.v1beta1.package.Version min_affected_version = 3; -
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
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.
-
setMaxAffectedVersion
The max version of the package in which the vulnerability exists.
.grafeas.v1beta1.package.Version max_affected_version = 4; -
setMaxAffectedVersion
The max version of the package in which the vulnerability exists.
.grafeas.v1beta1.package.Version max_affected_version = 4; -
mergeMaxAffectedVersion
The max version of the package in which the vulnerability exists.
.grafeas.v1beta1.package.Version max_affected_version = 4; -
clearMaxAffectedVersion
The max version of the package in which the vulnerability exists.
.grafeas.v1beta1.package.Version max_affected_version = 4; -
getMaxAffectedVersionBuilder
The max version of the package in which the vulnerability exists.
.grafeas.v1beta1.package.Version max_affected_version = 4; -
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
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.
-
setSeverityName
The severity (eg: distro assigned severity) for this vulnerability.
string severity_name = 5;- Parameters:
value- The severityName to set.- Returns:
- This builder for chaining.
-
clearSeverityName
The severity (eg: distro assigned severity) for this vulnerability.
string severity_name = 5;- Returns:
- This builder for chaining.
-
setSeverityNameBytes
The severity (eg: distro assigned severity) for this vulnerability.
string severity_name = 5;- Parameters:
value- The bytes for severityName to set.- Returns:
- This builder for chaining.
-
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.
-
setDescription
A vendor-specific description of this note.
string description = 6;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
A vendor-specific description of this note.
string description = 6;- Returns:
- This builder for chaining.
-
setDescriptionBytes
A vendor-specific description of this note.
string description = 6;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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
The fix for this specific package version.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;- Specified by:
getFixedLocationin interfaceVulnerability.DetailOrBuilder- Returns:
- The fixedLocation.
-
setFixedLocation
The fix for this specific package version.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7; -
setFixedLocation
The fix for this specific package version.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7; -
mergeFixedLocation
The fix for this specific package version.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7; -
clearFixedLocation
The fix for this specific package version.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7; -
getFixedLocationBuilder
The fix for this specific package version.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7; -
getFixedLocationOrBuilder
The fix for this specific package version.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;- Specified by:
getFixedLocationOrBuilderin interfaceVulnerability.DetailOrBuilder
-
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.
-
setPackageType
The type of package; whether native or non native(ruby gems, node.js packages etc).
string package_type = 8;- Parameters:
value- The packageType to set.- Returns:
- This builder for chaining.
-
clearPackageType
The type of package; whether native or non native(ruby gems, node.js packages etc).
string package_type = 8;- Returns:
- This builder for chaining.
-
setPackageTypeBytes
The type of package; whether native or non native(ruby gems, node.js packages etc).
string package_type = 8;- Parameters:
value- The bytes for packageType to set.- Returns:
- This builder for chaining.
-
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.
-
setIsObsolete
Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
bool is_obsolete = 9;- Parameters:
value- The isObsolete to set.- Returns:
- This builder for chaining.
-
clearIsObsolete
Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
bool is_obsolete = 9;- Returns:
- This builder for chaining.
-
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.
-
setSourceUpdateTime
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; -
setSourceUpdateTime
public Vulnerability.Detail.Builder setSourceUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) 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; -
mergeSourceUpdateTime
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; -
clearSourceUpdateTime
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; -
getSourceUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getSourceUpdateTimeBuilder()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; -
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
-