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.VulnerabilityOccurrence
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>
public VulnerabilityOccurrence.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>
public VulnerabilityOccurrence getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public VulnerabilityOccurrence build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public VulnerabilityOccurrence buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public VulnerabilityOccurrence.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>
public VulnerabilityOccurrence.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>
public VulnerabilityOccurrence.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>
public VulnerabilityOccurrence.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>
public VulnerabilityOccurrence.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>
public VulnerabilityOccurrence.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>
public VulnerabilityOccurrence.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<VulnerabilityOccurrence.Builder>
public VulnerabilityOccurrence.Builder mergeFrom(VulnerabilityOccurrence other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>
public VulnerabilityOccurrence.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<VulnerabilityOccurrence.Builder>
IOException
public 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 VulnerabilityOccurrenceOrBuilder
public 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 VulnerabilityOccurrenceOrBuilder
public 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 VulnerabilityOccurrenceOrBuilder
public 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 VulnerabilityOccurrenceOrBuilder
public 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 VulnerabilityOccurrenceOrBuilder
public 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 VulnerabilityOccurrenceOrBuilder
public 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 VulnerabilityOccurrenceOrBuilder
public 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 VulnerabilityOccurrenceOrBuilder
public 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 VulnerabilityOccurrenceOrBuilder
public 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 VulnerabilityOccurrenceOrBuilder
public 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 VulnerabilityOccurrenceOrBuilder
public ByteString getShortDescriptionBytes()
Output only. A one sentence description of this vulnerability.
string short_description = 5;
getShortDescriptionBytes
in interface VulnerabilityOccurrenceOrBuilder
public 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 VulnerabilityOccurrenceOrBuilder
public ByteString getLongDescriptionBytes()
Output only. A detailed description of this vulnerability.
string long_description = 6;
getLongDescriptionBytes
in interface VulnerabilityOccurrenceOrBuilder
public 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 VulnerabilityOccurrenceOrBuilder
public int getRelatedUrlsCount()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
getRelatedUrlsCount
in interface VulnerabilityOccurrenceOrBuilder
public RelatedUrl getRelatedUrls(int index)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
getRelatedUrls
in interface VulnerabilityOccurrenceOrBuilder
public 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 VulnerabilityOccurrenceOrBuilder
public List<? extends RelatedUrlOrBuilder> getRelatedUrlsOrBuilderList()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
getRelatedUrlsOrBuilderList
in interface VulnerabilityOccurrenceOrBuilder
public 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 VulnerabilityOccurrenceOrBuilder
public 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 VulnerabilityOccurrenceOrBuilder
public 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 VulnerabilityOccurrenceOrBuilder
public 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>
public final VulnerabilityOccurrence.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder>
Copyright © 2019 Google LLC. All rights reserved.