public static final class VulnerabilityOccurrence.Builder extends GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder> implements VulnerabilityOccurrenceOrBuilder
An occurrence of a severity vulnerability on a resource.Protobuf type
grafeas.v1.VulnerabilityOccurrencegetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>public VulnerabilityOccurrence.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>public VulnerabilityOccurrence getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic VulnerabilityOccurrence build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic VulnerabilityOccurrence buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic VulnerabilityOccurrence.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>public VulnerabilityOccurrence.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>public VulnerabilityOccurrence.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>public VulnerabilityOccurrence.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>public VulnerabilityOccurrence.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>public VulnerabilityOccurrence.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>public VulnerabilityOccurrence.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<VulnerabilityOccurrence.Builder>public VulnerabilityOccurrence.Builder mergeFrom(VulnerabilityOccurrence other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>public VulnerabilityOccurrence.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<VulnerabilityOccurrence.Builder>IOExceptionpublic String getType()
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
string type = 1;getType in interface VulnerabilityOccurrenceOrBuilderpublic ByteString getTypeBytes()
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
string type = 1;getTypeBytes in interface VulnerabilityOccurrenceOrBuilderpublic VulnerabilityOccurrence.Builder setType(String value)
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
string type = 1;public VulnerabilityOccurrence.Builder clearType()
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
string type = 1;public VulnerabilityOccurrence.Builder setTypeBytes(ByteString value)
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
string type = 1;public int getSeverityValue()
Output only. The note provider assigned severity of this vulnerability.
.grafeas.v1.Severity severity = 2;getSeverityValue in interface VulnerabilityOccurrenceOrBuilderpublic VulnerabilityOccurrence.Builder setSeverityValue(int value)
Output only. The note provider assigned severity of this vulnerability.
.grafeas.v1.Severity severity = 2;public Severity getSeverity()
Output only. The note provider assigned severity of this vulnerability.
.grafeas.v1.Severity severity = 2;getSeverity in interface VulnerabilityOccurrenceOrBuilderpublic VulnerabilityOccurrence.Builder setSeverity(Severity value)
Output only. The note provider assigned severity of this vulnerability.
.grafeas.v1.Severity severity = 2;public VulnerabilityOccurrence.Builder clearSeverity()
Output only. The note provider assigned severity of this vulnerability.
.grafeas.v1.Severity severity = 2;public float getCvssScore()
Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.
float cvss_score = 3;getCvssScore in interface VulnerabilityOccurrenceOrBuilderpublic VulnerabilityOccurrence.Builder setCvssScore(float value)
Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.
float cvss_score = 3;public VulnerabilityOccurrence.Builder clearCvssScore()
Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.
float cvss_score = 3;public List<VulnerabilityOccurrence.PackageIssue> getPackageIssueList()
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;getPackageIssueList in interface VulnerabilityOccurrenceOrBuilderpublic int getPackageIssueCount()
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;getPackageIssueCount in interface VulnerabilityOccurrenceOrBuilderpublic VulnerabilityOccurrence.PackageIssue getPackageIssue(int index)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;getPackageIssue in interface VulnerabilityOccurrenceOrBuilderpublic VulnerabilityOccurrence.Builder setPackageIssue(int index, VulnerabilityOccurrence.PackageIssue value)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;public VulnerabilityOccurrence.Builder setPackageIssue(int index, VulnerabilityOccurrence.PackageIssue.Builder builderForValue)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;public VulnerabilityOccurrence.Builder addPackageIssue(VulnerabilityOccurrence.PackageIssue value)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;public VulnerabilityOccurrence.Builder addPackageIssue(int index, VulnerabilityOccurrence.PackageIssue value)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;public VulnerabilityOccurrence.Builder addPackageIssue(VulnerabilityOccurrence.PackageIssue.Builder builderForValue)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;public VulnerabilityOccurrence.Builder addPackageIssue(int index, VulnerabilityOccurrence.PackageIssue.Builder builderForValue)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;public VulnerabilityOccurrence.Builder addAllPackageIssue(Iterable<? extends VulnerabilityOccurrence.PackageIssue> values)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;public VulnerabilityOccurrence.Builder clearPackageIssue()
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;public VulnerabilityOccurrence.Builder removePackageIssue(int index)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;public VulnerabilityOccurrence.PackageIssue.Builder getPackageIssueBuilder(int index)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;public VulnerabilityOccurrence.PackageIssueOrBuilder getPackageIssueOrBuilder(int index)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;getPackageIssueOrBuilder in interface VulnerabilityOccurrenceOrBuilderpublic List<? extends VulnerabilityOccurrence.PackageIssueOrBuilder> getPackageIssueOrBuilderList()
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;getPackageIssueOrBuilderList in interface VulnerabilityOccurrenceOrBuilderpublic VulnerabilityOccurrence.PackageIssue.Builder addPackageIssueBuilder()
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;public VulnerabilityOccurrence.PackageIssue.Builder addPackageIssueBuilder(int index)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;public List<VulnerabilityOccurrence.PackageIssue.Builder> getPackageIssueBuilderList()
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;public String getShortDescription()
Output only. A one sentence description of this vulnerability.
string short_description = 5;getShortDescription in interface VulnerabilityOccurrenceOrBuilderpublic ByteString getShortDescriptionBytes()
Output only. A one sentence description of this vulnerability.
string short_description = 5;getShortDescriptionBytes in interface VulnerabilityOccurrenceOrBuilderpublic VulnerabilityOccurrence.Builder setShortDescription(String value)
Output only. A one sentence description of this vulnerability.
string short_description = 5;public VulnerabilityOccurrence.Builder clearShortDescription()
Output only. A one sentence description of this vulnerability.
string short_description = 5;public VulnerabilityOccurrence.Builder setShortDescriptionBytes(ByteString value)
Output only. A one sentence description of this vulnerability.
string short_description = 5;public String getLongDescription()
Output only. A detailed description of this vulnerability.
string long_description = 6;getLongDescription in interface VulnerabilityOccurrenceOrBuilderpublic ByteString getLongDescriptionBytes()
Output only. A detailed description of this vulnerability.
string long_description = 6;getLongDescriptionBytes in interface VulnerabilityOccurrenceOrBuilderpublic VulnerabilityOccurrence.Builder setLongDescription(String value)
Output only. A detailed description of this vulnerability.
string long_description = 6;public VulnerabilityOccurrence.Builder clearLongDescription()
Output only. A detailed description of this vulnerability.
string long_description = 6;public VulnerabilityOccurrence.Builder setLongDescriptionBytes(ByteString value)
Output only. A detailed description of this vulnerability.
string long_description = 6;public List<RelatedUrl> getRelatedUrlsList()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;getRelatedUrlsList in interface VulnerabilityOccurrenceOrBuilderpublic int getRelatedUrlsCount()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;getRelatedUrlsCount in interface VulnerabilityOccurrenceOrBuilderpublic RelatedUrl getRelatedUrls(int index)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;getRelatedUrls in interface VulnerabilityOccurrenceOrBuilderpublic VulnerabilityOccurrence.Builder setRelatedUrls(int index, RelatedUrl value)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;public VulnerabilityOccurrence.Builder setRelatedUrls(int index, RelatedUrl.Builder builderForValue)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;public VulnerabilityOccurrence.Builder addRelatedUrls(RelatedUrl value)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;public VulnerabilityOccurrence.Builder addRelatedUrls(int index, RelatedUrl value)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;public VulnerabilityOccurrence.Builder addRelatedUrls(RelatedUrl.Builder builderForValue)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;public VulnerabilityOccurrence.Builder addRelatedUrls(int index, RelatedUrl.Builder builderForValue)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;public VulnerabilityOccurrence.Builder addAllRelatedUrls(Iterable<? extends RelatedUrl> values)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;public VulnerabilityOccurrence.Builder clearRelatedUrls()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;public VulnerabilityOccurrence.Builder removeRelatedUrls(int index)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;public RelatedUrl.Builder getRelatedUrlsBuilder(int index)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;public RelatedUrlOrBuilder getRelatedUrlsOrBuilder(int index)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;getRelatedUrlsOrBuilder in interface VulnerabilityOccurrenceOrBuilderpublic List<? extends RelatedUrlOrBuilder> getRelatedUrlsOrBuilderList()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;getRelatedUrlsOrBuilderList in interface VulnerabilityOccurrenceOrBuilderpublic RelatedUrl.Builder addRelatedUrlsBuilder()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;public RelatedUrl.Builder addRelatedUrlsBuilder(int index)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;public List<RelatedUrl.Builder> getRelatedUrlsBuilderList()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;public int getEffectiveSeverityValue()
The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
.grafeas.v1.Severity effective_severity = 8;getEffectiveSeverityValue in interface VulnerabilityOccurrenceOrBuilderpublic VulnerabilityOccurrence.Builder setEffectiveSeverityValue(int value)
The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
.grafeas.v1.Severity effective_severity = 8;public Severity getEffectiveSeverity()
The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
.grafeas.v1.Severity effective_severity = 8;getEffectiveSeverity in interface VulnerabilityOccurrenceOrBuilderpublic VulnerabilityOccurrence.Builder setEffectiveSeverity(Severity value)
The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
.grafeas.v1.Severity effective_severity = 8;public VulnerabilityOccurrence.Builder clearEffectiveSeverity()
The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
.grafeas.v1.Severity effective_severity = 8;public boolean getFixAvailable()
Output only. Whether at least one of the affected packages has a fix available.
bool fix_available = 9;getFixAvailable in interface VulnerabilityOccurrenceOrBuilderpublic VulnerabilityOccurrence.Builder setFixAvailable(boolean value)
Output only. Whether at least one of the affected packages has a fix available.
bool fix_available = 9;public VulnerabilityOccurrence.Builder clearFixAvailable()
Output only. Whether at least one of the affected packages has a fix available.
bool fix_available = 9;public final VulnerabilityOccurrence.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>public final VulnerabilityOccurrence.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>Copyright © 2019 Google LLC. All rights reserved.