Class VulnerabilityReport.Vulnerability.Details.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VulnerabilityReport.Vulnerability.Details.Builder>
com.google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Builder
- All Implemented Interfaces:
VulnerabilityReport.Vulnerability.DetailsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VulnerabilityReport.Vulnerability.Details
public static final class VulnerabilityReport.Vulnerability.Details.Builder
extends com.google.protobuf.GeneratedMessage.Builder<VulnerabilityReport.Vulnerability.Details.Builder>
implements VulnerabilityReport.Vulnerability.DetailsOrBuilder
Contains metadata information for the vulnerability. This information is collected from the upstream feed of the operating system.Protobuf type
google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details-
Method Summary
Modifier and TypeMethodDescriptionaddAllReferences(Iterable<? extends VulnerabilityReport.Vulnerability.Details.Reference> values) Corresponds to the references attached to the `VulnerabilityDetails`.addReferences(int index, VulnerabilityReport.Vulnerability.Details.Reference value) Corresponds to the references attached to the `VulnerabilityDetails`.addReferences(int index, VulnerabilityReport.Vulnerability.Details.Reference.Builder builderForValue) Corresponds to the references attached to the `VulnerabilityDetails`.Corresponds to the references attached to the `VulnerabilityDetails`.addReferences(VulnerabilityReport.Vulnerability.Details.Reference.Builder builderForValue) Corresponds to the references attached to the `VulnerabilityDetails`.Corresponds to the references attached to the `VulnerabilityDetails`.addReferencesBuilder(int index) Corresponds to the references attached to the `VulnerabilityDetails`.build()clear()clearCve()The CVE of the vulnerability.The CVSS V2 score of this vulnerability.The full description of the CVSSv3 for this vulnerability from NVD.The note or description describing the vulnerability from the distro.Corresponds to the references attached to the `VulnerabilityDetails`.Assigned severity/impact ranking from the distro.getCve()The CVE of the vulnerability.com.google.protobuf.ByteStringThe CVE of the vulnerability.floatThe CVSS V2 score of this vulnerability.The full description of the CVSSv3 for this vulnerability from NVD.The full description of the CVSSv3 for this vulnerability from NVD.The full description of the CVSSv3 for this vulnerability from NVD.The note or description describing the vulnerability from the distro.com.google.protobuf.ByteStringThe note or description describing the vulnerability from the distro.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetReferences(int index) Corresponds to the references attached to the `VulnerabilityDetails`.getReferencesBuilder(int index) Corresponds to the references attached to the `VulnerabilityDetails`.Corresponds to the references attached to the `VulnerabilityDetails`.intCorresponds to the references attached to the `VulnerabilityDetails`.Corresponds to the references attached to the `VulnerabilityDetails`.getReferencesOrBuilder(int index) Corresponds to the references attached to the `VulnerabilityDetails`.Corresponds to the references attached to the `VulnerabilityDetails`.Assigned severity/impact ranking from the distro.com.google.protobuf.ByteStringAssigned severity/impact ranking from the distro.booleanThe full description of the CVSSv3 for this vulnerability from NVD.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCvssV3(CVSSv3 value) The full description of the CVSSv3 for this vulnerability from NVD.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeReferences(int index) Corresponds to the references attached to the `VulnerabilityDetails`.The CVE of the vulnerability.setCveBytes(com.google.protobuf.ByteString value) The CVE of the vulnerability.setCvssV2Score(float value) The CVSS V2 score of this vulnerability.The full description of the CVSSv3 for this vulnerability from NVD.setCvssV3(CVSSv3.Builder builderForValue) The full description of the CVSSv3 for this vulnerability from NVD.setDescription(String value) The note or description describing the vulnerability from the distro.setDescriptionBytes(com.google.protobuf.ByteString value) The note or description describing the vulnerability from the distro.setReferences(int index, VulnerabilityReport.Vulnerability.Details.Reference value) Corresponds to the references attached to the `VulnerabilityDetails`.setReferences(int index, VulnerabilityReport.Vulnerability.Details.Reference.Builder builderForValue) Corresponds to the references attached to the `VulnerabilityDetails`.setSeverity(String value) Assigned severity/impact ranking from the distro.setSeverityBytes(com.google.protobuf.ByteString value) Assigned severity/impact ranking from the distro.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<VulnerabilityReport.Vulnerability.Details.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<VulnerabilityReport.Vulnerability.Details.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<VulnerabilityReport.Vulnerability.Details.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
public VulnerabilityReport.Vulnerability.Details.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VulnerabilityReport.Vulnerability.Details.Builder>
-
mergeFrom
public VulnerabilityReport.Vulnerability.Details.Builder mergeFrom(VulnerabilityReport.Vulnerability.Details other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<VulnerabilityReport.Vulnerability.Details.Builder>
-
mergeFrom
public VulnerabilityReport.Vulnerability.Details.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<VulnerabilityReport.Vulnerability.Details.Builder>- Throws:
IOException
-
getCve
The CVE of the vulnerability. CVE cannot be empty and the combination of <cve, classification> should be unique across vulnerabilities for a VM.
string cve = 1;- Specified by:
getCvein interfaceVulnerabilityReport.Vulnerability.DetailsOrBuilder- Returns:
- The cve.
-
getCveBytes
public com.google.protobuf.ByteString getCveBytes()The CVE of the vulnerability. CVE cannot be empty and the combination of <cve, classification> should be unique across vulnerabilities for a VM.
string cve = 1;- Specified by:
getCveBytesin interfaceVulnerabilityReport.Vulnerability.DetailsOrBuilder- Returns:
- The bytes for cve.
-
setCve
The CVE of the vulnerability. CVE cannot be empty and the combination of <cve, classification> should be unique across vulnerabilities for a VM.
string cve = 1;- Parameters:
value- The cve to set.- Returns:
- This builder for chaining.
-
clearCve
The CVE of the vulnerability. CVE cannot be empty and the combination of <cve, classification> should be unique across vulnerabilities for a VM.
string cve = 1;- Returns:
- This builder for chaining.
-
setCveBytes
public VulnerabilityReport.Vulnerability.Details.Builder setCveBytes(com.google.protobuf.ByteString value) The CVE of the vulnerability. CVE cannot be empty and the combination of <cve, classification> should be unique across vulnerabilities for a VM.
string cve = 1;- Parameters:
value- The bytes for cve to set.- Returns:
- This builder for chaining.
-
getCvssV2Score
public float getCvssV2Score()The CVSS V2 score of this vulnerability. CVSS V2 score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.
float cvss_v2_score = 2;- Specified by:
getCvssV2Scorein interfaceVulnerabilityReport.Vulnerability.DetailsOrBuilder- Returns:
- The cvssV2Score.
-
setCvssV2Score
The CVSS V2 score of this vulnerability. CVSS V2 score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.
float cvss_v2_score = 2;- Parameters:
value- The cvssV2Score to set.- Returns:
- This builder for chaining.
-
clearCvssV2Score
The CVSS V2 score of this vulnerability. CVSS V2 score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.
float cvss_v2_score = 2;- Returns:
- This builder for chaining.
-
hasCvssV3
public boolean hasCvssV3()The full description of the CVSSv3 for this vulnerability from NVD.
.google.cloud.osconfig.v1alpha.CVSSv3 cvss_v3 = 3;- Specified by:
hasCvssV3in interfaceVulnerabilityReport.Vulnerability.DetailsOrBuilder- Returns:
- Whether the cvssV3 field is set.
-
getCvssV3
The full description of the CVSSv3 for this vulnerability from NVD.
.google.cloud.osconfig.v1alpha.CVSSv3 cvss_v3 = 3;- Specified by:
getCvssV3in interfaceVulnerabilityReport.Vulnerability.DetailsOrBuilder- Returns:
- The cvssV3.
-
setCvssV3
The full description of the CVSSv3 for this vulnerability from NVD.
.google.cloud.osconfig.v1alpha.CVSSv3 cvss_v3 = 3; -
setCvssV3
The full description of the CVSSv3 for this vulnerability from NVD.
.google.cloud.osconfig.v1alpha.CVSSv3 cvss_v3 = 3; -
mergeCvssV3
The full description of the CVSSv3 for this vulnerability from NVD.
.google.cloud.osconfig.v1alpha.CVSSv3 cvss_v3 = 3; -
clearCvssV3
The full description of the CVSSv3 for this vulnerability from NVD.
.google.cloud.osconfig.v1alpha.CVSSv3 cvss_v3 = 3; -
getCvssV3Builder
The full description of the CVSSv3 for this vulnerability from NVD.
.google.cloud.osconfig.v1alpha.CVSSv3 cvss_v3 = 3; -
getCvssV3OrBuilder
The full description of the CVSSv3 for this vulnerability from NVD.
.google.cloud.osconfig.v1alpha.CVSSv3 cvss_v3 = 3;- Specified by:
getCvssV3OrBuilderin interfaceVulnerabilityReport.Vulnerability.DetailsOrBuilder
-
getSeverity
Assigned severity/impact ranking from the distro.
string severity = 4;- Specified by:
getSeverityin interfaceVulnerabilityReport.Vulnerability.DetailsOrBuilder- Returns:
- The severity.
-
getSeverityBytes
public com.google.protobuf.ByteString getSeverityBytes()Assigned severity/impact ranking from the distro.
string severity = 4;- Specified by:
getSeverityBytesin interfaceVulnerabilityReport.Vulnerability.DetailsOrBuilder- Returns:
- The bytes for severity.
-
setSeverity
Assigned severity/impact ranking from the distro.
string severity = 4;- Parameters:
value- The severity to set.- Returns:
- This builder for chaining.
-
clearSeverity
Assigned severity/impact ranking from the distro.
string severity = 4;- Returns:
- This builder for chaining.
-
setSeverityBytes
public VulnerabilityReport.Vulnerability.Details.Builder setSeverityBytes(com.google.protobuf.ByteString value) Assigned severity/impact ranking from the distro.
string severity = 4;- Parameters:
value- The bytes for severity to set.- Returns:
- This builder for chaining.
-
getDescription
The note or description describing the vulnerability from the distro.
string description = 5;- Specified by:
getDescriptionin interfaceVulnerabilityReport.Vulnerability.DetailsOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()The note or description describing the vulnerability from the distro.
string description = 5;- Specified by:
getDescriptionBytesin interfaceVulnerabilityReport.Vulnerability.DetailsOrBuilder- Returns:
- The bytes for description.
-
setDescription
The note or description describing the vulnerability from the distro.
string description = 5;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
The note or description describing the vulnerability from the distro.
string description = 5;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public VulnerabilityReport.Vulnerability.Details.Builder setDescriptionBytes(com.google.protobuf.ByteString value) The note or description describing the vulnerability from the distro.
string description = 5;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getReferencesList
Corresponds to the references attached to the `VulnerabilityDetails`.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6;- Specified by:
getReferencesListin interfaceVulnerabilityReport.Vulnerability.DetailsOrBuilder
-
getReferencesCount
public int getReferencesCount()Corresponds to the references attached to the `VulnerabilityDetails`.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6;- Specified by:
getReferencesCountin interfaceVulnerabilityReport.Vulnerability.DetailsOrBuilder
-
getReferences
Corresponds to the references attached to the `VulnerabilityDetails`.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6;- Specified by:
getReferencesin interfaceVulnerabilityReport.Vulnerability.DetailsOrBuilder
-
setReferences
public VulnerabilityReport.Vulnerability.Details.Builder setReferences(int index, VulnerabilityReport.Vulnerability.Details.Reference value) Corresponds to the references attached to the `VulnerabilityDetails`.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6; -
setReferences
public VulnerabilityReport.Vulnerability.Details.Builder setReferences(int index, VulnerabilityReport.Vulnerability.Details.Reference.Builder builderForValue) Corresponds to the references attached to the `VulnerabilityDetails`.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6; -
addReferences
public VulnerabilityReport.Vulnerability.Details.Builder addReferences(VulnerabilityReport.Vulnerability.Details.Reference value) Corresponds to the references attached to the `VulnerabilityDetails`.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6; -
addReferences
public VulnerabilityReport.Vulnerability.Details.Builder addReferences(int index, VulnerabilityReport.Vulnerability.Details.Reference value) Corresponds to the references attached to the `VulnerabilityDetails`.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6; -
addReferences
public VulnerabilityReport.Vulnerability.Details.Builder addReferences(VulnerabilityReport.Vulnerability.Details.Reference.Builder builderForValue) Corresponds to the references attached to the `VulnerabilityDetails`.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6; -
addReferences
public VulnerabilityReport.Vulnerability.Details.Builder addReferences(int index, VulnerabilityReport.Vulnerability.Details.Reference.Builder builderForValue) Corresponds to the references attached to the `VulnerabilityDetails`.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6; -
addAllReferences
public VulnerabilityReport.Vulnerability.Details.Builder addAllReferences(Iterable<? extends VulnerabilityReport.Vulnerability.Details.Reference> values) Corresponds to the references attached to the `VulnerabilityDetails`.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6; -
clearReferences
Corresponds to the references attached to the `VulnerabilityDetails`.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6; -
removeReferences
Corresponds to the references attached to the `VulnerabilityDetails`.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6; -
getReferencesBuilder
Corresponds to the references attached to the `VulnerabilityDetails`.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6; -
getReferencesOrBuilder
public VulnerabilityReport.Vulnerability.Details.ReferenceOrBuilder getReferencesOrBuilder(int index) Corresponds to the references attached to the `VulnerabilityDetails`.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6;- Specified by:
getReferencesOrBuilderin interfaceVulnerabilityReport.Vulnerability.DetailsOrBuilder
-
getReferencesOrBuilderList
public List<? extends VulnerabilityReport.Vulnerability.Details.ReferenceOrBuilder> getReferencesOrBuilderList()Corresponds to the references attached to the `VulnerabilityDetails`.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6;- Specified by:
getReferencesOrBuilderListin interfaceVulnerabilityReport.Vulnerability.DetailsOrBuilder
-
addReferencesBuilder
Corresponds to the references attached to the `VulnerabilityDetails`.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6; -
addReferencesBuilder
Corresponds to the references attached to the `VulnerabilityDetails`.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6; -
getReferencesBuilderList
Corresponds to the references attached to the `VulnerabilityDetails`.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6;
-