Class CVSSv3.Builder

  • All Implemented Interfaces:
    CVSSv3OrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    CVSSv3

    public static final class CVSSv3.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CVSSv3.Builder>
    implements CVSSv3OrBuilder
     Common Vulnerability Scoring System version 3.
     For details, see https://www.first.org/cvss/specification-document
     
    Protobuf type google.cloud.osconfig.v1alpha.CVSSv3
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CVSSv3.Builder>
      • clear

        public CVSSv3.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<CVSSv3.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CVSSv3.Builder>
      • getDefaultInstanceForType

        public CVSSv3 getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public CVSSv3 build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public CVSSv3 buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public CVSSv3.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<CVSSv3.Builder>
      • setField

        public CVSSv3.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                       Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<CVSSv3.Builder>
      • clearField

        public CVSSv3.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CVSSv3.Builder>
      • clearOneof

        public CVSSv3.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CVSSv3.Builder>
      • setRepeatedField

        public CVSSv3.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               int index,
                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CVSSv3.Builder>
      • addRepeatedField

        public CVSSv3.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CVSSv3.Builder>
      • mergeFrom

        public CVSSv3.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CVSSv3.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CVSSv3.Builder>
      • mergeFrom

        public CVSSv3.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CVSSv3.Builder>
        Throws:
        IOException
      • getBaseScore

        public float getBaseScore()
         The base score is a function of the base metric scores.
         https://www.first.org/cvss/specification-document#Base-Metrics
         
        float base_score = 1;
        Specified by:
        getBaseScore in interface CVSSv3OrBuilder
        Returns:
        The baseScore.
      • setBaseScore

        public CVSSv3.Builder setBaseScore​(float value)
         The base score is a function of the base metric scores.
         https://www.first.org/cvss/specification-document#Base-Metrics
         
        float base_score = 1;
        Parameters:
        value - The baseScore to set.
        Returns:
        This builder for chaining.
      • clearBaseScore

        public CVSSv3.Builder clearBaseScore()
         The base score is a function of the base metric scores.
         https://www.first.org/cvss/specification-document#Base-Metrics
         
        float base_score = 1;
        Returns:
        This builder for chaining.
      • getExploitabilityScore

        public float getExploitabilityScore()
         The Exploitability sub-score equation is derived from the Base
         Exploitability metrics.
         https://www.first.org/cvss/specification-document#2-1-Exploitability-Metrics
         
        float exploitability_score = 2;
        Specified by:
        getExploitabilityScore in interface CVSSv3OrBuilder
        Returns:
        The exploitabilityScore.
      • setExploitabilityScore

        public CVSSv3.Builder setExploitabilityScore​(float value)
         The Exploitability sub-score equation is derived from the Base
         Exploitability metrics.
         https://www.first.org/cvss/specification-document#2-1-Exploitability-Metrics
         
        float exploitability_score = 2;
        Parameters:
        value - The exploitabilityScore to set.
        Returns:
        This builder for chaining.
      • clearExploitabilityScore

        public CVSSv3.Builder clearExploitabilityScore()
         The Exploitability sub-score equation is derived from the Base
         Exploitability metrics.
         https://www.first.org/cvss/specification-document#2-1-Exploitability-Metrics
         
        float exploitability_score = 2;
        Returns:
        This builder for chaining.
      • getImpactScore

        public float getImpactScore()
         The Impact sub-score equation is derived from the Base Impact metrics.
         
        float impact_score = 3;
        Specified by:
        getImpactScore in interface CVSSv3OrBuilder
        Returns:
        The impactScore.
      • setImpactScore

        public CVSSv3.Builder setImpactScore​(float value)
         The Impact sub-score equation is derived from the Base Impact metrics.
         
        float impact_score = 3;
        Parameters:
        value - The impactScore to set.
        Returns:
        This builder for chaining.
      • clearImpactScore

        public CVSSv3.Builder clearImpactScore()
         The Impact sub-score equation is derived from the Base Impact metrics.
         
        float impact_score = 3;
        Returns:
        This builder for chaining.
      • getAttackVectorValue

        public int getAttackVectorValue()
         This metric reflects the context by which vulnerability exploitation is
         possible.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.AttackVector attack_vector = 5;
        Specified by:
        getAttackVectorValue in interface CVSSv3OrBuilder
        Returns:
        The enum numeric value on the wire for attackVector.
      • setAttackVectorValue

        public CVSSv3.Builder setAttackVectorValue​(int value)
         This metric reflects the context by which vulnerability exploitation is
         possible.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.AttackVector attack_vector = 5;
        Parameters:
        value - The enum numeric value on the wire for attackVector to set.
        Returns:
        This builder for chaining.
      • getAttackVector

        public CVSSv3.AttackVector getAttackVector()
         This metric reflects the context by which vulnerability exploitation is
         possible.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.AttackVector attack_vector = 5;
        Specified by:
        getAttackVector in interface CVSSv3OrBuilder
        Returns:
        The attackVector.
      • setAttackVector

        public CVSSv3.Builder setAttackVector​(CVSSv3.AttackVector value)
         This metric reflects the context by which vulnerability exploitation is
         possible.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.AttackVector attack_vector = 5;
        Parameters:
        value - The attackVector to set.
        Returns:
        This builder for chaining.
      • clearAttackVector

        public CVSSv3.Builder clearAttackVector()
         This metric reflects the context by which vulnerability exploitation is
         possible.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.AttackVector attack_vector = 5;
        Returns:
        This builder for chaining.
      • getAttackComplexityValue

        public int getAttackComplexityValue()
         This metric describes the conditions beyond the attacker's control that
         must exist in order to exploit the vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.AttackComplexity attack_complexity = 6;
        Specified by:
        getAttackComplexityValue in interface CVSSv3OrBuilder
        Returns:
        The enum numeric value on the wire for attackComplexity.
      • setAttackComplexityValue

        public CVSSv3.Builder setAttackComplexityValue​(int value)
         This metric describes the conditions beyond the attacker's control that
         must exist in order to exploit the vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.AttackComplexity attack_complexity = 6;
        Parameters:
        value - The enum numeric value on the wire for attackComplexity to set.
        Returns:
        This builder for chaining.
      • getAttackComplexity

        public CVSSv3.AttackComplexity getAttackComplexity()
         This metric describes the conditions beyond the attacker's control that
         must exist in order to exploit the vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.AttackComplexity attack_complexity = 6;
        Specified by:
        getAttackComplexity in interface CVSSv3OrBuilder
        Returns:
        The attackComplexity.
      • setAttackComplexity

        public CVSSv3.Builder setAttackComplexity​(CVSSv3.AttackComplexity value)
         This metric describes the conditions beyond the attacker's control that
         must exist in order to exploit the vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.AttackComplexity attack_complexity = 6;
        Parameters:
        value - The attackComplexity to set.
        Returns:
        This builder for chaining.
      • clearAttackComplexity

        public CVSSv3.Builder clearAttackComplexity()
         This metric describes the conditions beyond the attacker's control that
         must exist in order to exploit the vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.AttackComplexity attack_complexity = 6;
        Returns:
        This builder for chaining.
      • getPrivilegesRequiredValue

        public int getPrivilegesRequiredValue()
         This metric describes the level of privileges an attacker must possess
         before successfully exploiting the vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.PrivilegesRequired privileges_required = 7;
        Specified by:
        getPrivilegesRequiredValue in interface CVSSv3OrBuilder
        Returns:
        The enum numeric value on the wire for privilegesRequired.
      • setPrivilegesRequiredValue

        public CVSSv3.Builder setPrivilegesRequiredValue​(int value)
         This metric describes the level of privileges an attacker must possess
         before successfully exploiting the vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.PrivilegesRequired privileges_required = 7;
        Parameters:
        value - The enum numeric value on the wire for privilegesRequired to set.
        Returns:
        This builder for chaining.
      • getPrivilegesRequired

        public CVSSv3.PrivilegesRequired getPrivilegesRequired()
         This metric describes the level of privileges an attacker must possess
         before successfully exploiting the vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.PrivilegesRequired privileges_required = 7;
        Specified by:
        getPrivilegesRequired in interface CVSSv3OrBuilder
        Returns:
        The privilegesRequired.
      • setPrivilegesRequired

        public CVSSv3.Builder setPrivilegesRequired​(CVSSv3.PrivilegesRequired value)
         This metric describes the level of privileges an attacker must possess
         before successfully exploiting the vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.PrivilegesRequired privileges_required = 7;
        Parameters:
        value - The privilegesRequired to set.
        Returns:
        This builder for chaining.
      • clearPrivilegesRequired

        public CVSSv3.Builder clearPrivilegesRequired()
         This metric describes the level of privileges an attacker must possess
         before successfully exploiting the vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.PrivilegesRequired privileges_required = 7;
        Returns:
        This builder for chaining.
      • getUserInteractionValue

        public int getUserInteractionValue()
         This metric captures the requirement for a human user, other than the
         attacker, to participate in the successful compromise of the vulnerable
         component.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.UserInteraction user_interaction = 8;
        Specified by:
        getUserInteractionValue in interface CVSSv3OrBuilder
        Returns:
        The enum numeric value on the wire for userInteraction.
      • setUserInteractionValue

        public CVSSv3.Builder setUserInteractionValue​(int value)
         This metric captures the requirement for a human user, other than the
         attacker, to participate in the successful compromise of the vulnerable
         component.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.UserInteraction user_interaction = 8;
        Parameters:
        value - The enum numeric value on the wire for userInteraction to set.
        Returns:
        This builder for chaining.
      • getUserInteraction

        public CVSSv3.UserInteraction getUserInteraction()
         This metric captures the requirement for a human user, other than the
         attacker, to participate in the successful compromise of the vulnerable
         component.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.UserInteraction user_interaction = 8;
        Specified by:
        getUserInteraction in interface CVSSv3OrBuilder
        Returns:
        The userInteraction.
      • setUserInteraction

        public CVSSv3.Builder setUserInteraction​(CVSSv3.UserInteraction value)
         This metric captures the requirement for a human user, other than the
         attacker, to participate in the successful compromise of the vulnerable
         component.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.UserInteraction user_interaction = 8;
        Parameters:
        value - The userInteraction to set.
        Returns:
        This builder for chaining.
      • clearUserInteraction

        public CVSSv3.Builder clearUserInteraction()
         This metric captures the requirement for a human user, other than the
         attacker, to participate in the successful compromise of the vulnerable
         component.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.UserInteraction user_interaction = 8;
        Returns:
        This builder for chaining.
      • getScopeValue

        public int getScopeValue()
         The Scope metric captures whether a vulnerability in one vulnerable
         component impacts resources in components beyond its security scope.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.Scope scope = 9;
        Specified by:
        getScopeValue in interface CVSSv3OrBuilder
        Returns:
        The enum numeric value on the wire for scope.
      • setScopeValue

        public CVSSv3.Builder setScopeValue​(int value)
         The Scope metric captures whether a vulnerability in one vulnerable
         component impacts resources in components beyond its security scope.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.Scope scope = 9;
        Parameters:
        value - The enum numeric value on the wire for scope to set.
        Returns:
        This builder for chaining.
      • getScope

        public CVSSv3.Scope getScope()
         The Scope metric captures whether a vulnerability in one vulnerable
         component impacts resources in components beyond its security scope.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.Scope scope = 9;
        Specified by:
        getScope in interface CVSSv3OrBuilder
        Returns:
        The scope.
      • setScope

        public CVSSv3.Builder setScope​(CVSSv3.Scope value)
         The Scope metric captures whether a vulnerability in one vulnerable
         component impacts resources in components beyond its security scope.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.Scope scope = 9;
        Parameters:
        value - The scope to set.
        Returns:
        This builder for chaining.
      • clearScope

        public CVSSv3.Builder clearScope()
         The Scope metric captures whether a vulnerability in one vulnerable
         component impacts resources in components beyond its security scope.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.Scope scope = 9;
        Returns:
        This builder for chaining.
      • getConfidentialityImpactValue

        public int getConfidentialityImpactValue()
         This metric measures the impact to the confidentiality of the information
         resources managed by a software component due to a successfully exploited
         vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.Impact confidentiality_impact = 10;
        Specified by:
        getConfidentialityImpactValue in interface CVSSv3OrBuilder
        Returns:
        The enum numeric value on the wire for confidentialityImpact.
      • setConfidentialityImpactValue

        public CVSSv3.Builder setConfidentialityImpactValue​(int value)
         This metric measures the impact to the confidentiality of the information
         resources managed by a software component due to a successfully exploited
         vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.Impact confidentiality_impact = 10;
        Parameters:
        value - The enum numeric value on the wire for confidentialityImpact to set.
        Returns:
        This builder for chaining.
      • getConfidentialityImpact

        public CVSSv3.Impact getConfidentialityImpact()
         This metric measures the impact to the confidentiality of the information
         resources managed by a software component due to a successfully exploited
         vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.Impact confidentiality_impact = 10;
        Specified by:
        getConfidentialityImpact in interface CVSSv3OrBuilder
        Returns:
        The confidentialityImpact.
      • setConfidentialityImpact

        public CVSSv3.Builder setConfidentialityImpact​(CVSSv3.Impact value)
         This metric measures the impact to the confidentiality of the information
         resources managed by a software component due to a successfully exploited
         vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.Impact confidentiality_impact = 10;
        Parameters:
        value - The confidentialityImpact to set.
        Returns:
        This builder for chaining.
      • clearConfidentialityImpact

        public CVSSv3.Builder clearConfidentialityImpact()
         This metric measures the impact to the confidentiality of the information
         resources managed by a software component due to a successfully exploited
         vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.Impact confidentiality_impact = 10;
        Returns:
        This builder for chaining.
      • getIntegrityImpactValue

        public int getIntegrityImpactValue()
         This metric measures the impact to integrity of a successfully exploited
         vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.Impact integrity_impact = 11;
        Specified by:
        getIntegrityImpactValue in interface CVSSv3OrBuilder
        Returns:
        The enum numeric value on the wire for integrityImpact.
      • setIntegrityImpactValue

        public CVSSv3.Builder setIntegrityImpactValue​(int value)
         This metric measures the impact to integrity of a successfully exploited
         vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.Impact integrity_impact = 11;
        Parameters:
        value - The enum numeric value on the wire for integrityImpact to set.
        Returns:
        This builder for chaining.
      • getIntegrityImpact

        public CVSSv3.Impact getIntegrityImpact()
         This metric measures the impact to integrity of a successfully exploited
         vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.Impact integrity_impact = 11;
        Specified by:
        getIntegrityImpact in interface CVSSv3OrBuilder
        Returns:
        The integrityImpact.
      • setIntegrityImpact

        public CVSSv3.Builder setIntegrityImpact​(CVSSv3.Impact value)
         This metric measures the impact to integrity of a successfully exploited
         vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.Impact integrity_impact = 11;
        Parameters:
        value - The integrityImpact to set.
        Returns:
        This builder for chaining.
      • clearIntegrityImpact

        public CVSSv3.Builder clearIntegrityImpact()
         This metric measures the impact to integrity of a successfully exploited
         vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.Impact integrity_impact = 11;
        Returns:
        This builder for chaining.
      • getAvailabilityImpactValue

        public int getAvailabilityImpactValue()
         This metric measures the impact to the availability of the impacted
         component resulting from a successfully exploited vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.Impact availability_impact = 12;
        Specified by:
        getAvailabilityImpactValue in interface CVSSv3OrBuilder
        Returns:
        The enum numeric value on the wire for availabilityImpact.
      • setAvailabilityImpactValue

        public CVSSv3.Builder setAvailabilityImpactValue​(int value)
         This metric measures the impact to the availability of the impacted
         component resulting from a successfully exploited vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.Impact availability_impact = 12;
        Parameters:
        value - The enum numeric value on the wire for availabilityImpact to set.
        Returns:
        This builder for chaining.
      • getAvailabilityImpact

        public CVSSv3.Impact getAvailabilityImpact()
         This metric measures the impact to the availability of the impacted
         component resulting from a successfully exploited vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.Impact availability_impact = 12;
        Specified by:
        getAvailabilityImpact in interface CVSSv3OrBuilder
        Returns:
        The availabilityImpact.
      • setAvailabilityImpact

        public CVSSv3.Builder setAvailabilityImpact​(CVSSv3.Impact value)
         This metric measures the impact to the availability of the impacted
         component resulting from a successfully exploited vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.Impact availability_impact = 12;
        Parameters:
        value - The availabilityImpact to set.
        Returns:
        This builder for chaining.
      • clearAvailabilityImpact

        public CVSSv3.Builder clearAvailabilityImpact()
         This metric measures the impact to the availability of the impacted
         component resulting from a successfully exploited vulnerability.
         
        .google.cloud.osconfig.v1alpha.CVSSv3.Impact availability_impact = 12;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CVSSv3.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CVSSv3.Builder>
      • mergeUnknownFields

        public final CVSSv3.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CVSSv3.Builder>