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.
     
    Protobuf type google.cloud.securitycenter.v1.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 double getBaseScore()
         The base score is a function of the base metric scores.
         
        double base_score = 1;
        Specified by:
        getBaseScore in interface Cvssv3OrBuilder
        Returns:
        The baseScore.
      • setBaseScore

        public Cvssv3.Builder setBaseScore​(double value)
         The base score is a function of the base metric scores.
         
        double 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.
         
        double base_score = 1;
        Returns:
        This builder for chaining.
      • getAttackVectorValue

        public int getAttackVectorValue()
         Base Metrics
         Represents the intrinsic characteristics of a vulnerability that are
         constant over time and across user environments.
         This metric reflects the context by which vulnerability exploitation is
         possible.
         
        .google.cloud.securitycenter.v1.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)
         Base Metrics
         Represents the intrinsic characteristics of a vulnerability that are
         constant over time and across user environments.
         This metric reflects the context by which vulnerability exploitation is
         possible.
         
        .google.cloud.securitycenter.v1.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()
         Base Metrics
         Represents the intrinsic characteristics of a vulnerability that are
         constant over time and across user environments.
         This metric reflects the context by which vulnerability exploitation is
         possible.
         
        .google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5;
        Specified by:
        getAttackVector in interface Cvssv3OrBuilder
        Returns:
        The attackVector.
      • setAttackVector

        public Cvssv3.Builder setAttackVector​(Cvssv3.AttackVector value)
         Base Metrics
         Represents the intrinsic characteristics of a vulnerability that are
         constant over time and across user environments.
         This metric reflects the context by which vulnerability exploitation is
         possible.
         
        .google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5;
        Parameters:
        value - The attackVector to set.
        Returns:
        This builder for chaining.
      • clearAttackVector

        public Cvssv3.Builder clearAttackVector()
         Base Metrics
         Represents the intrinsic characteristics of a vulnerability that are
         constant over time and across user environments.
         This metric reflects the context by which vulnerability exploitation is
         possible.
         
        .google.cloud.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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.securitycenter.v1.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>