CVSS.java

/*
 * Copyright 2019 The Grafeas Authors. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: grafeas/v1/cvss.proto

package io.grafeas.v1;

/**
 *
 *
 * <pre>
 * Common Vulnerability Scoring System.
 * For details, see https://www.first.org/cvss/specification-document
 * This is a message we will try to use for storing various versions of CVSS
 * rather than making a separate proto for storing a specific version.
 * </pre>
 *
 * Protobuf type {@code grafeas.v1.CVSS}
 */
public final class CVSS extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:grafeas.v1.CVSS)
    CVSSOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use CVSS.newBuilder() to construct.
  private CVSS(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private CVSS() {
    attackVector_ = 0;
    attackComplexity_ = 0;
    authentication_ = 0;
    privilegesRequired_ = 0;
    userInteraction_ = 0;
    scope_ = 0;
    confidentialityImpact_ = 0;
    integrityImpact_ = 0;
    availabilityImpact_ = 0;
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new CVSS();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return io.grafeas.v1.CVSSProto.internal_static_grafeas_v1_CVSS_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grafeas.v1.CVSSProto.internal_static_grafeas_v1_CVSS_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grafeas.v1.CVSS.class, io.grafeas.v1.CVSS.Builder.class);
  }

  /** Protobuf enum {@code grafeas.v1.CVSS.AttackVector} */
  public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum {
    /** <code>ATTACK_VECTOR_UNSPECIFIED = 0;</code> */
    ATTACK_VECTOR_UNSPECIFIED(0),
    /** <code>ATTACK_VECTOR_NETWORK = 1;</code> */
    ATTACK_VECTOR_NETWORK(1),
    /** <code>ATTACK_VECTOR_ADJACENT = 2;</code> */
    ATTACK_VECTOR_ADJACENT(2),
    /** <code>ATTACK_VECTOR_LOCAL = 3;</code> */
    ATTACK_VECTOR_LOCAL(3),
    /** <code>ATTACK_VECTOR_PHYSICAL = 4;</code> */
    ATTACK_VECTOR_PHYSICAL(4),
    UNRECOGNIZED(-1),
    ;

    /** <code>ATTACK_VECTOR_UNSPECIFIED = 0;</code> */
    public static final int ATTACK_VECTOR_UNSPECIFIED_VALUE = 0;
    /** <code>ATTACK_VECTOR_NETWORK = 1;</code> */
    public static final int ATTACK_VECTOR_NETWORK_VALUE = 1;
    /** <code>ATTACK_VECTOR_ADJACENT = 2;</code> */
    public static final int ATTACK_VECTOR_ADJACENT_VALUE = 2;
    /** <code>ATTACK_VECTOR_LOCAL = 3;</code> */
    public static final int ATTACK_VECTOR_LOCAL_VALUE = 3;
    /** <code>ATTACK_VECTOR_PHYSICAL = 4;</code> */
    public static final int ATTACK_VECTOR_PHYSICAL_VALUE = 4;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static AttackVector valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static AttackVector forNumber(int value) {
      switch (value) {
        case 0:
          return ATTACK_VECTOR_UNSPECIFIED;
        case 1:
          return ATTACK_VECTOR_NETWORK;
        case 2:
          return ATTACK_VECTOR_ADJACENT;
        case 3:
          return ATTACK_VECTOR_LOCAL;
        case 4:
          return ATTACK_VECTOR_PHYSICAL;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<AttackVector> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<AttackVector> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<AttackVector>() {
          public AttackVector findValueByNumber(int number) {
            return AttackVector.forNumber(number);
          }
        };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return io.grafeas.v1.CVSS.getDescriptor().getEnumTypes().get(0);
    }

    private static final AttackVector[] VALUES = values();

    public static AttackVector valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private AttackVector(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:grafeas.v1.CVSS.AttackVector)
  }

  /** Protobuf enum {@code grafeas.v1.CVSS.AttackComplexity} */
  public enum AttackComplexity implements com.google.protobuf.ProtocolMessageEnum {
    /** <code>ATTACK_COMPLEXITY_UNSPECIFIED = 0;</code> */
    ATTACK_COMPLEXITY_UNSPECIFIED(0),
    /** <code>ATTACK_COMPLEXITY_LOW = 1;</code> */
    ATTACK_COMPLEXITY_LOW(1),
    /** <code>ATTACK_COMPLEXITY_HIGH = 2;</code> */
    ATTACK_COMPLEXITY_HIGH(2),
    UNRECOGNIZED(-1),
    ;

    /** <code>ATTACK_COMPLEXITY_UNSPECIFIED = 0;</code> */
    public static final int ATTACK_COMPLEXITY_UNSPECIFIED_VALUE = 0;
    /** <code>ATTACK_COMPLEXITY_LOW = 1;</code> */
    public static final int ATTACK_COMPLEXITY_LOW_VALUE = 1;
    /** <code>ATTACK_COMPLEXITY_HIGH = 2;</code> */
    public static final int ATTACK_COMPLEXITY_HIGH_VALUE = 2;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static AttackComplexity valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static AttackComplexity forNumber(int value) {
      switch (value) {
        case 0:
          return ATTACK_COMPLEXITY_UNSPECIFIED;
        case 1:
          return ATTACK_COMPLEXITY_LOW;
        case 2:
          return ATTACK_COMPLEXITY_HIGH;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<AttackComplexity> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<AttackComplexity>
        internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<AttackComplexity>() {
              public AttackComplexity findValueByNumber(int number) {
                return AttackComplexity.forNumber(number);
              }
            };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return io.grafeas.v1.CVSS.getDescriptor().getEnumTypes().get(1);
    }

    private static final AttackComplexity[] VALUES = values();

    public static AttackComplexity valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private AttackComplexity(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:grafeas.v1.CVSS.AttackComplexity)
  }

  /** Protobuf enum {@code grafeas.v1.CVSS.Authentication} */
  public enum Authentication implements com.google.protobuf.ProtocolMessageEnum {
    /** <code>AUTHENTICATION_UNSPECIFIED = 0;</code> */
    AUTHENTICATION_UNSPECIFIED(0),
    /** <code>AUTHENTICATION_MULTIPLE = 1;</code> */
    AUTHENTICATION_MULTIPLE(1),
    /** <code>AUTHENTICATION_SINGLE = 2;</code> */
    AUTHENTICATION_SINGLE(2),
    /** <code>AUTHENTICATION_NONE = 3;</code> */
    AUTHENTICATION_NONE(3),
    UNRECOGNIZED(-1),
    ;

    /** <code>AUTHENTICATION_UNSPECIFIED = 0;</code> */
    public static final int AUTHENTICATION_UNSPECIFIED_VALUE = 0;
    /** <code>AUTHENTICATION_MULTIPLE = 1;</code> */
    public static final int AUTHENTICATION_MULTIPLE_VALUE = 1;
    /** <code>AUTHENTICATION_SINGLE = 2;</code> */
    public static final int AUTHENTICATION_SINGLE_VALUE = 2;
    /** <code>AUTHENTICATION_NONE = 3;</code> */
    public static final int AUTHENTICATION_NONE_VALUE = 3;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static Authentication valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static Authentication forNumber(int value) {
      switch (value) {
        case 0:
          return AUTHENTICATION_UNSPECIFIED;
        case 1:
          return AUTHENTICATION_MULTIPLE;
        case 2:
          return AUTHENTICATION_SINGLE;
        case 3:
          return AUTHENTICATION_NONE;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<Authentication> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<Authentication> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<Authentication>() {
          public Authentication findValueByNumber(int number) {
            return Authentication.forNumber(number);
          }
        };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return io.grafeas.v1.CVSS.getDescriptor().getEnumTypes().get(2);
    }

    private static final Authentication[] VALUES = values();

    public static Authentication valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private Authentication(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:grafeas.v1.CVSS.Authentication)
  }

  /** Protobuf enum {@code grafeas.v1.CVSS.PrivilegesRequired} */
  public enum PrivilegesRequired implements com.google.protobuf.ProtocolMessageEnum {
    /** <code>PRIVILEGES_REQUIRED_UNSPECIFIED = 0;</code> */
    PRIVILEGES_REQUIRED_UNSPECIFIED(0),
    /** <code>PRIVILEGES_REQUIRED_NONE = 1;</code> */
    PRIVILEGES_REQUIRED_NONE(1),
    /** <code>PRIVILEGES_REQUIRED_LOW = 2;</code> */
    PRIVILEGES_REQUIRED_LOW(2),
    /** <code>PRIVILEGES_REQUIRED_HIGH = 3;</code> */
    PRIVILEGES_REQUIRED_HIGH(3),
    UNRECOGNIZED(-1),
    ;

    /** <code>PRIVILEGES_REQUIRED_UNSPECIFIED = 0;</code> */
    public static final int PRIVILEGES_REQUIRED_UNSPECIFIED_VALUE = 0;
    /** <code>PRIVILEGES_REQUIRED_NONE = 1;</code> */
    public static final int PRIVILEGES_REQUIRED_NONE_VALUE = 1;
    /** <code>PRIVILEGES_REQUIRED_LOW = 2;</code> */
    public static final int PRIVILEGES_REQUIRED_LOW_VALUE = 2;
    /** <code>PRIVILEGES_REQUIRED_HIGH = 3;</code> */
    public static final int PRIVILEGES_REQUIRED_HIGH_VALUE = 3;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static PrivilegesRequired valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static PrivilegesRequired forNumber(int value) {
      switch (value) {
        case 0:
          return PRIVILEGES_REQUIRED_UNSPECIFIED;
        case 1:
          return PRIVILEGES_REQUIRED_NONE;
        case 2:
          return PRIVILEGES_REQUIRED_LOW;
        case 3:
          return PRIVILEGES_REQUIRED_HIGH;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<PrivilegesRequired>
        internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<PrivilegesRequired>
        internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<PrivilegesRequired>() {
              public PrivilegesRequired findValueByNumber(int number) {
                return PrivilegesRequired.forNumber(number);
              }
            };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return io.grafeas.v1.CVSS.getDescriptor().getEnumTypes().get(3);
    }

    private static final PrivilegesRequired[] VALUES = values();

    public static PrivilegesRequired valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private PrivilegesRequired(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:grafeas.v1.CVSS.PrivilegesRequired)
  }

  /** Protobuf enum {@code grafeas.v1.CVSS.UserInteraction} */
  public enum UserInteraction implements com.google.protobuf.ProtocolMessageEnum {
    /** <code>USER_INTERACTION_UNSPECIFIED = 0;</code> */
    USER_INTERACTION_UNSPECIFIED(0),
    /** <code>USER_INTERACTION_NONE = 1;</code> */
    USER_INTERACTION_NONE(1),
    /** <code>USER_INTERACTION_REQUIRED = 2;</code> */
    USER_INTERACTION_REQUIRED(2),
    UNRECOGNIZED(-1),
    ;

    /** <code>USER_INTERACTION_UNSPECIFIED = 0;</code> */
    public static final int USER_INTERACTION_UNSPECIFIED_VALUE = 0;
    /** <code>USER_INTERACTION_NONE = 1;</code> */
    public static final int USER_INTERACTION_NONE_VALUE = 1;
    /** <code>USER_INTERACTION_REQUIRED = 2;</code> */
    public static final int USER_INTERACTION_REQUIRED_VALUE = 2;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static UserInteraction valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static UserInteraction forNumber(int value) {
      switch (value) {
        case 0:
          return USER_INTERACTION_UNSPECIFIED;
        case 1:
          return USER_INTERACTION_NONE;
        case 2:
          return USER_INTERACTION_REQUIRED;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<UserInteraction> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<UserInteraction>
        internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<UserInteraction>() {
              public UserInteraction findValueByNumber(int number) {
                return UserInteraction.forNumber(number);
              }
            };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return io.grafeas.v1.CVSS.getDescriptor().getEnumTypes().get(4);
    }

    private static final UserInteraction[] VALUES = values();

    public static UserInteraction valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private UserInteraction(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:grafeas.v1.CVSS.UserInteraction)
  }

  /** Protobuf enum {@code grafeas.v1.CVSS.Scope} */
  public enum Scope implements com.google.protobuf.ProtocolMessageEnum {
    /** <code>SCOPE_UNSPECIFIED = 0;</code> */
    SCOPE_UNSPECIFIED(0),
    /** <code>SCOPE_UNCHANGED = 1;</code> */
    SCOPE_UNCHANGED(1),
    /** <code>SCOPE_CHANGED = 2;</code> */
    SCOPE_CHANGED(2),
    UNRECOGNIZED(-1),
    ;

    /** <code>SCOPE_UNSPECIFIED = 0;</code> */
    public static final int SCOPE_UNSPECIFIED_VALUE = 0;
    /** <code>SCOPE_UNCHANGED = 1;</code> */
    public static final int SCOPE_UNCHANGED_VALUE = 1;
    /** <code>SCOPE_CHANGED = 2;</code> */
    public static final int SCOPE_CHANGED_VALUE = 2;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static Scope valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static Scope forNumber(int value) {
      switch (value) {
        case 0:
          return SCOPE_UNSPECIFIED;
        case 1:
          return SCOPE_UNCHANGED;
        case 2:
          return SCOPE_CHANGED;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<Scope> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<Scope> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<Scope>() {
          public Scope findValueByNumber(int number) {
            return Scope.forNumber(number);
          }
        };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return io.grafeas.v1.CVSS.getDescriptor().getEnumTypes().get(5);
    }

    private static final Scope[] VALUES = values();

    public static Scope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private Scope(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:grafeas.v1.CVSS.Scope)
  }

  /** Protobuf enum {@code grafeas.v1.CVSS.Impact} */
  public enum Impact implements com.google.protobuf.ProtocolMessageEnum {
    /** <code>IMPACT_UNSPECIFIED = 0;</code> */
    IMPACT_UNSPECIFIED(0),
    /** <code>IMPACT_HIGH = 1;</code> */
    IMPACT_HIGH(1),
    /** <code>IMPACT_LOW = 2;</code> */
    IMPACT_LOW(2),
    /** <code>IMPACT_NONE = 3;</code> */
    IMPACT_NONE(3),
    UNRECOGNIZED(-1),
    ;

    /** <code>IMPACT_UNSPECIFIED = 0;</code> */
    public static final int IMPACT_UNSPECIFIED_VALUE = 0;
    /** <code>IMPACT_HIGH = 1;</code> */
    public static final int IMPACT_HIGH_VALUE = 1;
    /** <code>IMPACT_LOW = 2;</code> */
    public static final int IMPACT_LOW_VALUE = 2;
    /** <code>IMPACT_NONE = 3;</code> */
    public static final int IMPACT_NONE_VALUE = 3;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static Impact valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static Impact forNumber(int value) {
      switch (value) {
        case 0:
          return IMPACT_UNSPECIFIED;
        case 1:
          return IMPACT_HIGH;
        case 2:
          return IMPACT_LOW;
        case 3:
          return IMPACT_NONE;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<Impact> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<Impact> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<Impact>() {
          public Impact findValueByNumber(int number) {
            return Impact.forNumber(number);
          }
        };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return io.grafeas.v1.CVSS.getDescriptor().getEnumTypes().get(6);
    }

    private static final Impact[] VALUES = values();

    public static Impact valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private Impact(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:grafeas.v1.CVSS.Impact)
  }

  public static final int BASE_SCORE_FIELD_NUMBER = 1;
  private float baseScore_;
  /**
   *
   *
   * <pre>
   * The base score is a function of the base metric scores.
   * </pre>
   *
   * <code>float base_score = 1;</code>
   *
   * @return The baseScore.
   */
  @java.lang.Override
  public float getBaseScore() {
    return baseScore_;
  }

  public static final int EXPLOITABILITY_SCORE_FIELD_NUMBER = 2;
  private float exploitabilityScore_;
  /**
   * <code>float exploitability_score = 2;</code>
   *
   * @return The exploitabilityScore.
   */
  @java.lang.Override
  public float getExploitabilityScore() {
    return exploitabilityScore_;
  }

  public static final int IMPACT_SCORE_FIELD_NUMBER = 3;
  private float impactScore_;
  /**
   * <code>float impact_score = 3;</code>
   *
   * @return The impactScore.
   */
  @java.lang.Override
  public float getImpactScore() {
    return impactScore_;
  }

  public static final int ATTACK_VECTOR_FIELD_NUMBER = 4;
  private int attackVector_;
  /**
   *
   *
   * <pre>
   * Base Metrics
   * Represents the intrinsic characteristics of a vulnerability that are
   * constant over time and across user environments.
   * </pre>
   *
   * <code>.grafeas.v1.CVSS.AttackVector attack_vector = 4;</code>
   *
   * @return The enum numeric value on the wire for attackVector.
   */
  @java.lang.Override
  public int getAttackVectorValue() {
    return attackVector_;
  }
  /**
   *
   *
   * <pre>
   * Base Metrics
   * Represents the intrinsic characteristics of a vulnerability that are
   * constant over time and across user environments.
   * </pre>
   *
   * <code>.grafeas.v1.CVSS.AttackVector attack_vector = 4;</code>
   *
   * @return The attackVector.
   */
  @java.lang.Override
  public io.grafeas.v1.CVSS.AttackVector getAttackVector() {
    @SuppressWarnings("deprecation")
    io.grafeas.v1.CVSS.AttackVector result = io.grafeas.v1.CVSS.AttackVector.valueOf(attackVector_);
    return result == null ? io.grafeas.v1.CVSS.AttackVector.UNRECOGNIZED : result;
  }

  public static final int ATTACK_COMPLEXITY_FIELD_NUMBER = 5;
  private int attackComplexity_;
  /**
   * <code>.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;</code>
   *
   * @return The enum numeric value on the wire for attackComplexity.
   */
  @java.lang.Override
  public int getAttackComplexityValue() {
    return attackComplexity_;
  }
  /**
   * <code>.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;</code>
   *
   * @return The attackComplexity.
   */
  @java.lang.Override
  public io.grafeas.v1.CVSS.AttackComplexity getAttackComplexity() {
    @SuppressWarnings("deprecation")
    io.grafeas.v1.CVSS.AttackComplexity result =
        io.grafeas.v1.CVSS.AttackComplexity.valueOf(attackComplexity_);
    return result == null ? io.grafeas.v1.CVSS.AttackComplexity.UNRECOGNIZED : result;
  }

  public static final int AUTHENTICATION_FIELD_NUMBER = 6;
  private int authentication_;
  /**
   * <code>.grafeas.v1.CVSS.Authentication authentication = 6;</code>
   *
   * @return The enum numeric value on the wire for authentication.
   */
  @java.lang.Override
  public int getAuthenticationValue() {
    return authentication_;
  }
  /**
   * <code>.grafeas.v1.CVSS.Authentication authentication = 6;</code>
   *
   * @return The authentication.
   */
  @java.lang.Override
  public io.grafeas.v1.CVSS.Authentication getAuthentication() {
    @SuppressWarnings("deprecation")
    io.grafeas.v1.CVSS.Authentication result =
        io.grafeas.v1.CVSS.Authentication.valueOf(authentication_);
    return result == null ? io.grafeas.v1.CVSS.Authentication.UNRECOGNIZED : result;
  }

  public static final int PRIVILEGES_REQUIRED_FIELD_NUMBER = 7;
  private int privilegesRequired_;
  /**
   * <code>.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;</code>
   *
   * @return The enum numeric value on the wire for privilegesRequired.
   */
  @java.lang.Override
  public int getPrivilegesRequiredValue() {
    return privilegesRequired_;
  }
  /**
   * <code>.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;</code>
   *
   * @return The privilegesRequired.
   */
  @java.lang.Override
  public io.grafeas.v1.CVSS.PrivilegesRequired getPrivilegesRequired() {
    @SuppressWarnings("deprecation")
    io.grafeas.v1.CVSS.PrivilegesRequired result =
        io.grafeas.v1.CVSS.PrivilegesRequired.valueOf(privilegesRequired_);
    return result == null ? io.grafeas.v1.CVSS.PrivilegesRequired.UNRECOGNIZED : result;
  }

  public static final int USER_INTERACTION_FIELD_NUMBER = 8;
  private int userInteraction_;
  /**
   * <code>.grafeas.v1.CVSS.UserInteraction user_interaction = 8;</code>
   *
   * @return The enum numeric value on the wire for userInteraction.
   */
  @java.lang.Override
  public int getUserInteractionValue() {
    return userInteraction_;
  }
  /**
   * <code>.grafeas.v1.CVSS.UserInteraction user_interaction = 8;</code>
   *
   * @return The userInteraction.
   */
  @java.lang.Override
  public io.grafeas.v1.CVSS.UserInteraction getUserInteraction() {
    @SuppressWarnings("deprecation")
    io.grafeas.v1.CVSS.UserInteraction result =
        io.grafeas.v1.CVSS.UserInteraction.valueOf(userInteraction_);
    return result == null ? io.grafeas.v1.CVSS.UserInteraction.UNRECOGNIZED : result;
  }

  public static final int SCOPE_FIELD_NUMBER = 9;
  private int scope_;
  /**
   * <code>.grafeas.v1.CVSS.Scope scope = 9;</code>
   *
   * @return The enum numeric value on the wire for scope.
   */
  @java.lang.Override
  public int getScopeValue() {
    return scope_;
  }
  /**
   * <code>.grafeas.v1.CVSS.Scope scope = 9;</code>
   *
   * @return The scope.
   */
  @java.lang.Override
  public io.grafeas.v1.CVSS.Scope getScope() {
    @SuppressWarnings("deprecation")
    io.grafeas.v1.CVSS.Scope result = io.grafeas.v1.CVSS.Scope.valueOf(scope_);
    return result == null ? io.grafeas.v1.CVSS.Scope.UNRECOGNIZED : result;
  }

  public static final int CONFIDENTIALITY_IMPACT_FIELD_NUMBER = 10;
  private int confidentialityImpact_;
  /**
   * <code>.grafeas.v1.CVSS.Impact confidentiality_impact = 10;</code>
   *
   * @return The enum numeric value on the wire for confidentialityImpact.
   */
  @java.lang.Override
  public int getConfidentialityImpactValue() {
    return confidentialityImpact_;
  }
  /**
   * <code>.grafeas.v1.CVSS.Impact confidentiality_impact = 10;</code>
   *
   * @return The confidentialityImpact.
   */
  @java.lang.Override
  public io.grafeas.v1.CVSS.Impact getConfidentialityImpact() {
    @SuppressWarnings("deprecation")
    io.grafeas.v1.CVSS.Impact result = io.grafeas.v1.CVSS.Impact.valueOf(confidentialityImpact_);
    return result == null ? io.grafeas.v1.CVSS.Impact.UNRECOGNIZED : result;
  }

  public static final int INTEGRITY_IMPACT_FIELD_NUMBER = 11;
  private int integrityImpact_;
  /**
   * <code>.grafeas.v1.CVSS.Impact integrity_impact = 11;</code>
   *
   * @return The enum numeric value on the wire for integrityImpact.
   */
  @java.lang.Override
  public int getIntegrityImpactValue() {
    return integrityImpact_;
  }
  /**
   * <code>.grafeas.v1.CVSS.Impact integrity_impact = 11;</code>
   *
   * @return The integrityImpact.
   */
  @java.lang.Override
  public io.grafeas.v1.CVSS.Impact getIntegrityImpact() {
    @SuppressWarnings("deprecation")
    io.grafeas.v1.CVSS.Impact result = io.grafeas.v1.CVSS.Impact.valueOf(integrityImpact_);
    return result == null ? io.grafeas.v1.CVSS.Impact.UNRECOGNIZED : result;
  }

  public static final int AVAILABILITY_IMPACT_FIELD_NUMBER = 12;
  private int availabilityImpact_;
  /**
   * <code>.grafeas.v1.CVSS.Impact availability_impact = 12;</code>
   *
   * @return The enum numeric value on the wire for availabilityImpact.
   */
  @java.lang.Override
  public int getAvailabilityImpactValue() {
    return availabilityImpact_;
  }
  /**
   * <code>.grafeas.v1.CVSS.Impact availability_impact = 12;</code>
   *
   * @return The availabilityImpact.
   */
  @java.lang.Override
  public io.grafeas.v1.CVSS.Impact getAvailabilityImpact() {
    @SuppressWarnings("deprecation")
    io.grafeas.v1.CVSS.Impact result = io.grafeas.v1.CVSS.Impact.valueOf(availabilityImpact_);
    return result == null ? io.grafeas.v1.CVSS.Impact.UNRECOGNIZED : result;
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (java.lang.Float.floatToRawIntBits(baseScore_) != 0) {
      output.writeFloat(1, baseScore_);
    }
    if (java.lang.Float.floatToRawIntBits(exploitabilityScore_) != 0) {
      output.writeFloat(2, exploitabilityScore_);
    }
    if (java.lang.Float.floatToRawIntBits(impactScore_) != 0) {
      output.writeFloat(3, impactScore_);
    }
    if (attackVector_ != io.grafeas.v1.CVSS.AttackVector.ATTACK_VECTOR_UNSPECIFIED.getNumber()) {
      output.writeEnum(4, attackVector_);
    }
    if (attackComplexity_
        != io.grafeas.v1.CVSS.AttackComplexity.ATTACK_COMPLEXITY_UNSPECIFIED.getNumber()) {
      output.writeEnum(5, attackComplexity_);
    }
    if (authentication_
        != io.grafeas.v1.CVSS.Authentication.AUTHENTICATION_UNSPECIFIED.getNumber()) {
      output.writeEnum(6, authentication_);
    }
    if (privilegesRequired_
        != io.grafeas.v1.CVSS.PrivilegesRequired.PRIVILEGES_REQUIRED_UNSPECIFIED.getNumber()) {
      output.writeEnum(7, privilegesRequired_);
    }
    if (userInteraction_
        != io.grafeas.v1.CVSS.UserInteraction.USER_INTERACTION_UNSPECIFIED.getNumber()) {
      output.writeEnum(8, userInteraction_);
    }
    if (scope_ != io.grafeas.v1.CVSS.Scope.SCOPE_UNSPECIFIED.getNumber()) {
      output.writeEnum(9, scope_);
    }
    if (confidentialityImpact_ != io.grafeas.v1.CVSS.Impact.IMPACT_UNSPECIFIED.getNumber()) {
      output.writeEnum(10, confidentialityImpact_);
    }
    if (integrityImpact_ != io.grafeas.v1.CVSS.Impact.IMPACT_UNSPECIFIED.getNumber()) {
      output.writeEnum(11, integrityImpact_);
    }
    if (availabilityImpact_ != io.grafeas.v1.CVSS.Impact.IMPACT_UNSPECIFIED.getNumber()) {
      output.writeEnum(12, availabilityImpact_);
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (java.lang.Float.floatToRawIntBits(baseScore_) != 0) {
      size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, baseScore_);
    }
    if (java.lang.Float.floatToRawIntBits(exploitabilityScore_) != 0) {
      size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, exploitabilityScore_);
    }
    if (java.lang.Float.floatToRawIntBits(impactScore_) != 0) {
      size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, impactScore_);
    }
    if (attackVector_ != io.grafeas.v1.CVSS.AttackVector.ATTACK_VECTOR_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, attackVector_);
    }
    if (attackComplexity_
        != io.grafeas.v1.CVSS.AttackComplexity.ATTACK_COMPLEXITY_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, attackComplexity_);
    }
    if (authentication_
        != io.grafeas.v1.CVSS.Authentication.AUTHENTICATION_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, authentication_);
    }
    if (privilegesRequired_
        != io.grafeas.v1.CVSS.PrivilegesRequired.PRIVILEGES_REQUIRED_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, privilegesRequired_);
    }
    if (userInteraction_
        != io.grafeas.v1.CVSS.UserInteraction.USER_INTERACTION_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, userInteraction_);
    }
    if (scope_ != io.grafeas.v1.CVSS.Scope.SCOPE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, scope_);
    }
    if (confidentialityImpact_ != io.grafeas.v1.CVSS.Impact.IMPACT_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, confidentialityImpact_);
    }
    if (integrityImpact_ != io.grafeas.v1.CVSS.Impact.IMPACT_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, integrityImpact_);
    }
    if (availabilityImpact_ != io.grafeas.v1.CVSS.Impact.IMPACT_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, availabilityImpact_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof io.grafeas.v1.CVSS)) {
      return super.equals(obj);
    }
    io.grafeas.v1.CVSS other = (io.grafeas.v1.CVSS) obj;

    if (java.lang.Float.floatToIntBits(getBaseScore())
        != java.lang.Float.floatToIntBits(other.getBaseScore())) return false;
    if (java.lang.Float.floatToIntBits(getExploitabilityScore())
        != java.lang.Float.floatToIntBits(other.getExploitabilityScore())) return false;
    if (java.lang.Float.floatToIntBits(getImpactScore())
        != java.lang.Float.floatToIntBits(other.getImpactScore())) return false;
    if (attackVector_ != other.attackVector_) return false;
    if (attackComplexity_ != other.attackComplexity_) return false;
    if (authentication_ != other.authentication_) return false;
    if (privilegesRequired_ != other.privilegesRequired_) return false;
    if (userInteraction_ != other.userInteraction_) return false;
    if (scope_ != other.scope_) return false;
    if (confidentialityImpact_ != other.confidentialityImpact_) return false;
    if (integrityImpact_ != other.integrityImpact_) return false;
    if (availabilityImpact_ != other.availabilityImpact_) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + BASE_SCORE_FIELD_NUMBER;
    hash = (53 * hash) + java.lang.Float.floatToIntBits(getBaseScore());
    hash = (37 * hash) + EXPLOITABILITY_SCORE_FIELD_NUMBER;
    hash = (53 * hash) + java.lang.Float.floatToIntBits(getExploitabilityScore());
    hash = (37 * hash) + IMPACT_SCORE_FIELD_NUMBER;
    hash = (53 * hash) + java.lang.Float.floatToIntBits(getImpactScore());
    hash = (37 * hash) + ATTACK_VECTOR_FIELD_NUMBER;
    hash = (53 * hash) + attackVector_;
    hash = (37 * hash) + ATTACK_COMPLEXITY_FIELD_NUMBER;
    hash = (53 * hash) + attackComplexity_;
    hash = (37 * hash) + AUTHENTICATION_FIELD_NUMBER;
    hash = (53 * hash) + authentication_;
    hash = (37 * hash) + PRIVILEGES_REQUIRED_FIELD_NUMBER;
    hash = (53 * hash) + privilegesRequired_;
    hash = (37 * hash) + USER_INTERACTION_FIELD_NUMBER;
    hash = (53 * hash) + userInteraction_;
    hash = (37 * hash) + SCOPE_FIELD_NUMBER;
    hash = (53 * hash) + scope_;
    hash = (37 * hash) + CONFIDENTIALITY_IMPACT_FIELD_NUMBER;
    hash = (53 * hash) + confidentialityImpact_;
    hash = (37 * hash) + INTEGRITY_IMPACT_FIELD_NUMBER;
    hash = (53 * hash) + integrityImpact_;
    hash = (37 * hash) + AVAILABILITY_IMPACT_FIELD_NUMBER;
    hash = (53 * hash) + availabilityImpact_;
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.grafeas.v1.CVSS parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static io.grafeas.v1.CVSS parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static io.grafeas.v1.CVSS parseFrom(com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static io.grafeas.v1.CVSS parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static io.grafeas.v1.CVSS parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static io.grafeas.v1.CVSS parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static io.grafeas.v1.CVSS parseFrom(java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static io.grafeas.v1.CVSS parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static io.grafeas.v1.CVSS parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static io.grafeas.v1.CVSS parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static io.grafeas.v1.CVSS parseFrom(com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static io.grafeas.v1.CVSS parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(io.grafeas.v1.CVSS prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   *
   *
   * <pre>
   * Common Vulnerability Scoring System.
   * For details, see https://www.first.org/cvss/specification-document
   * This is a message we will try to use for storing various versions of CVSS
   * rather than making a separate proto for storing a specific version.
   * </pre>
   *
   * Protobuf type {@code grafeas.v1.CVSS}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:grafeas.v1.CVSS)
      io.grafeas.v1.CVSSOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return io.grafeas.v1.CVSSProto.internal_static_grafeas_v1_CVSS_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grafeas.v1.CVSSProto.internal_static_grafeas_v1_CVSS_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grafeas.v1.CVSS.class, io.grafeas.v1.CVSS.Builder.class);
    }

    // Construct using io.grafeas.v1.CVSS.newBuilder()
    private Builder() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      baseScore_ = 0F;

      exploitabilityScore_ = 0F;

      impactScore_ = 0F;

      attackVector_ = 0;

      attackComplexity_ = 0;

      authentication_ = 0;

      privilegesRequired_ = 0;

      userInteraction_ = 0;

      scope_ = 0;

      confidentialityImpact_ = 0;

      integrityImpact_ = 0;

      availabilityImpact_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return io.grafeas.v1.CVSSProto.internal_static_grafeas_v1_CVSS_descriptor;
    }

    @java.lang.Override
    public io.grafeas.v1.CVSS getDefaultInstanceForType() {
      return io.grafeas.v1.CVSS.getDefaultInstance();
    }

    @java.lang.Override
    public io.grafeas.v1.CVSS build() {
      io.grafeas.v1.CVSS result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public io.grafeas.v1.CVSS buildPartial() {
      io.grafeas.v1.CVSS result = new io.grafeas.v1.CVSS(this);
      result.baseScore_ = baseScore_;
      result.exploitabilityScore_ = exploitabilityScore_;
      result.impactScore_ = impactScore_;
      result.attackVector_ = attackVector_;
      result.attackComplexity_ = attackComplexity_;
      result.authentication_ = authentication_;
      result.privilegesRequired_ = privilegesRequired_;
      result.userInteraction_ = userInteraction_;
      result.scope_ = scope_;
      result.confidentialityImpact_ = confidentialityImpact_;
      result.integrityImpact_ = integrityImpact_;
      result.availabilityImpact_ = availabilityImpact_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof io.grafeas.v1.CVSS) {
        return mergeFrom((io.grafeas.v1.CVSS) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grafeas.v1.CVSS other) {
      if (other == io.grafeas.v1.CVSS.getDefaultInstance()) return this;
      if (other.getBaseScore() != 0F) {
        setBaseScore(other.getBaseScore());
      }
      if (other.getExploitabilityScore() != 0F) {
        setExploitabilityScore(other.getExploitabilityScore());
      }
      if (other.getImpactScore() != 0F) {
        setImpactScore(other.getImpactScore());
      }
      if (other.attackVector_ != 0) {
        setAttackVectorValue(other.getAttackVectorValue());
      }
      if (other.attackComplexity_ != 0) {
        setAttackComplexityValue(other.getAttackComplexityValue());
      }
      if (other.authentication_ != 0) {
        setAuthenticationValue(other.getAuthenticationValue());
      }
      if (other.privilegesRequired_ != 0) {
        setPrivilegesRequiredValue(other.getPrivilegesRequiredValue());
      }
      if (other.userInteraction_ != 0) {
        setUserInteractionValue(other.getUserInteractionValue());
      }
      if (other.scope_ != 0) {
        setScopeValue(other.getScopeValue());
      }
      if (other.confidentialityImpact_ != 0) {
        setConfidentialityImpactValue(other.getConfidentialityImpactValue());
      }
      if (other.integrityImpact_ != 0) {
        setIntegrityImpactValue(other.getIntegrityImpactValue());
      }
      if (other.availabilityImpact_ != 0) {
        setAvailabilityImpactValue(other.getAvailabilityImpactValue());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 13:
              {
                baseScore_ = input.readFloat();

                break;
              } // case 13
            case 21:
              {
                exploitabilityScore_ = input.readFloat();

                break;
              } // case 21
            case 29:
              {
                impactScore_ = input.readFloat();

                break;
              } // case 29
            case 32:
              {
                attackVector_ = input.readEnum();

                break;
              } // case 32
            case 40:
              {
                attackComplexity_ = input.readEnum();

                break;
              } // case 40
            case 48:
              {
                authentication_ = input.readEnum();

                break;
              } // case 48
            case 56:
              {
                privilegesRequired_ = input.readEnum();

                break;
              } // case 56
            case 64:
              {
                userInteraction_ = input.readEnum();

                break;
              } // case 64
            case 72:
              {
                scope_ = input.readEnum();

                break;
              } // case 72
            case 80:
              {
                confidentialityImpact_ = input.readEnum();

                break;
              } // case 80
            case 88:
              {
                integrityImpact_ = input.readEnum();

                break;
              } // case 88
            case 96:
              {
                availabilityImpact_ = input.readEnum();

                break;
              } // case 96
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private float baseScore_;
    /**
     *
     *
     * <pre>
     * The base score is a function of the base metric scores.
     * </pre>
     *
     * <code>float base_score = 1;</code>
     *
     * @return The baseScore.
     */
    @java.lang.Override
    public float getBaseScore() {
      return baseScore_;
    }
    /**
     *
     *
     * <pre>
     * The base score is a function of the base metric scores.
     * </pre>
     *
     * <code>float base_score = 1;</code>
     *
     * @param value The baseScore to set.
     * @return This builder for chaining.
     */
    public Builder setBaseScore(float value) {

      baseScore_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The base score is a function of the base metric scores.
     * </pre>
     *
     * <code>float base_score = 1;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearBaseScore() {

      baseScore_ = 0F;
      onChanged();
      return this;
    }

    private float exploitabilityScore_;
    /**
     * <code>float exploitability_score = 2;</code>
     *
     * @return The exploitabilityScore.
     */
    @java.lang.Override
    public float getExploitabilityScore() {
      return exploitabilityScore_;
    }
    /**
     * <code>float exploitability_score = 2;</code>
     *
     * @param value The exploitabilityScore to set.
     * @return This builder for chaining.
     */
    public Builder setExploitabilityScore(float value) {

      exploitabilityScore_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>float exploitability_score = 2;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearExploitabilityScore() {

      exploitabilityScore_ = 0F;
      onChanged();
      return this;
    }

    private float impactScore_;
    /**
     * <code>float impact_score = 3;</code>
     *
     * @return The impactScore.
     */
    @java.lang.Override
    public float getImpactScore() {
      return impactScore_;
    }
    /**
     * <code>float impact_score = 3;</code>
     *
     * @param value The impactScore to set.
     * @return This builder for chaining.
     */
    public Builder setImpactScore(float value) {

      impactScore_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>float impact_score = 3;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearImpactScore() {

      impactScore_ = 0F;
      onChanged();
      return this;
    }

    private int attackVector_ = 0;
    /**
     *
     *
     * <pre>
     * Base Metrics
     * Represents the intrinsic characteristics of a vulnerability that are
     * constant over time and across user environments.
     * </pre>
     *
     * <code>.grafeas.v1.CVSS.AttackVector attack_vector = 4;</code>
     *
     * @return The enum numeric value on the wire for attackVector.
     */
    @java.lang.Override
    public int getAttackVectorValue() {
      return attackVector_;
    }
    /**
     *
     *
     * <pre>
     * Base Metrics
     * Represents the intrinsic characteristics of a vulnerability that are
     * constant over time and across user environments.
     * </pre>
     *
     * <code>.grafeas.v1.CVSS.AttackVector attack_vector = 4;</code>
     *
     * @param value The enum numeric value on the wire for attackVector to set.
     * @return This builder for chaining.
     */
    public Builder setAttackVectorValue(int value) {

      attackVector_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Base Metrics
     * Represents the intrinsic characteristics of a vulnerability that are
     * constant over time and across user environments.
     * </pre>
     *
     * <code>.grafeas.v1.CVSS.AttackVector attack_vector = 4;</code>
     *
     * @return The attackVector.
     */
    @java.lang.Override
    public io.grafeas.v1.CVSS.AttackVector getAttackVector() {
      @SuppressWarnings("deprecation")
      io.grafeas.v1.CVSS.AttackVector result =
          io.grafeas.v1.CVSS.AttackVector.valueOf(attackVector_);
      return result == null ? io.grafeas.v1.CVSS.AttackVector.UNRECOGNIZED : result;
    }
    /**
     *
     *
     * <pre>
     * Base Metrics
     * Represents the intrinsic characteristics of a vulnerability that are
     * constant over time and across user environments.
     * </pre>
     *
     * <code>.grafeas.v1.CVSS.AttackVector attack_vector = 4;</code>
     *
     * @param value The attackVector to set.
     * @return This builder for chaining.
     */
    public Builder setAttackVector(io.grafeas.v1.CVSS.AttackVector value) {
      if (value == null) {
        throw new NullPointerException();
      }

      attackVector_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Base Metrics
     * Represents the intrinsic characteristics of a vulnerability that are
     * constant over time and across user environments.
     * </pre>
     *
     * <code>.grafeas.v1.CVSS.AttackVector attack_vector = 4;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearAttackVector() {

      attackVector_ = 0;
      onChanged();
      return this;
    }

    private int attackComplexity_ = 0;
    /**
     * <code>.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;</code>
     *
     * @return The enum numeric value on the wire for attackComplexity.
     */
    @java.lang.Override
    public int getAttackComplexityValue() {
      return attackComplexity_;
    }
    /**
     * <code>.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;</code>
     *
     * @param value The enum numeric value on the wire for attackComplexity to set.
     * @return This builder for chaining.
     */
    public Builder setAttackComplexityValue(int value) {

      attackComplexity_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;</code>
     *
     * @return The attackComplexity.
     */
    @java.lang.Override
    public io.grafeas.v1.CVSS.AttackComplexity getAttackComplexity() {
      @SuppressWarnings("deprecation")
      io.grafeas.v1.CVSS.AttackComplexity result =
          io.grafeas.v1.CVSS.AttackComplexity.valueOf(attackComplexity_);
      return result == null ? io.grafeas.v1.CVSS.AttackComplexity.UNRECOGNIZED : result;
    }
    /**
     * <code>.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;</code>
     *
     * @param value The attackComplexity to set.
     * @return This builder for chaining.
     */
    public Builder setAttackComplexity(io.grafeas.v1.CVSS.AttackComplexity value) {
      if (value == null) {
        throw new NullPointerException();
      }

      attackComplexity_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearAttackComplexity() {

      attackComplexity_ = 0;
      onChanged();
      return this;
    }

    private int authentication_ = 0;
    /**
     * <code>.grafeas.v1.CVSS.Authentication authentication = 6;</code>
     *
     * @return The enum numeric value on the wire for authentication.
     */
    @java.lang.Override
    public int getAuthenticationValue() {
      return authentication_;
    }
    /**
     * <code>.grafeas.v1.CVSS.Authentication authentication = 6;</code>
     *
     * @param value The enum numeric value on the wire for authentication to set.
     * @return This builder for chaining.
     */
    public Builder setAuthenticationValue(int value) {

      authentication_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>.grafeas.v1.CVSS.Authentication authentication = 6;</code>
     *
     * @return The authentication.
     */
    @java.lang.Override
    public io.grafeas.v1.CVSS.Authentication getAuthentication() {
      @SuppressWarnings("deprecation")
      io.grafeas.v1.CVSS.Authentication result =
          io.grafeas.v1.CVSS.Authentication.valueOf(authentication_);
      return result == null ? io.grafeas.v1.CVSS.Authentication.UNRECOGNIZED : result;
    }
    /**
     * <code>.grafeas.v1.CVSS.Authentication authentication = 6;</code>
     *
     * @param value The authentication to set.
     * @return This builder for chaining.
     */
    public Builder setAuthentication(io.grafeas.v1.CVSS.Authentication value) {
      if (value == null) {
        throw new NullPointerException();
      }

      authentication_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.grafeas.v1.CVSS.Authentication authentication = 6;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearAuthentication() {

      authentication_ = 0;
      onChanged();
      return this;
    }

    private int privilegesRequired_ = 0;
    /**
     * <code>.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;</code>
     *
     * @return The enum numeric value on the wire for privilegesRequired.
     */
    @java.lang.Override
    public int getPrivilegesRequiredValue() {
      return privilegesRequired_;
    }
    /**
     * <code>.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;</code>
     *
     * @param value The enum numeric value on the wire for privilegesRequired to set.
     * @return This builder for chaining.
     */
    public Builder setPrivilegesRequiredValue(int value) {

      privilegesRequired_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;</code>
     *
     * @return The privilegesRequired.
     */
    @java.lang.Override
    public io.grafeas.v1.CVSS.PrivilegesRequired getPrivilegesRequired() {
      @SuppressWarnings("deprecation")
      io.grafeas.v1.CVSS.PrivilegesRequired result =
          io.grafeas.v1.CVSS.PrivilegesRequired.valueOf(privilegesRequired_);
      return result == null ? io.grafeas.v1.CVSS.PrivilegesRequired.UNRECOGNIZED : result;
    }
    /**
     * <code>.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;</code>
     *
     * @param value The privilegesRequired to set.
     * @return This builder for chaining.
     */
    public Builder setPrivilegesRequired(io.grafeas.v1.CVSS.PrivilegesRequired value) {
      if (value == null) {
        throw new NullPointerException();
      }

      privilegesRequired_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearPrivilegesRequired() {

      privilegesRequired_ = 0;
      onChanged();
      return this;
    }

    private int userInteraction_ = 0;
    /**
     * <code>.grafeas.v1.CVSS.UserInteraction user_interaction = 8;</code>
     *
     * @return The enum numeric value on the wire for userInteraction.
     */
    @java.lang.Override
    public int getUserInteractionValue() {
      return userInteraction_;
    }
    /**
     * <code>.grafeas.v1.CVSS.UserInteraction user_interaction = 8;</code>
     *
     * @param value The enum numeric value on the wire for userInteraction to set.
     * @return This builder for chaining.
     */
    public Builder setUserInteractionValue(int value) {

      userInteraction_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>.grafeas.v1.CVSS.UserInteraction user_interaction = 8;</code>
     *
     * @return The userInteraction.
     */
    @java.lang.Override
    public io.grafeas.v1.CVSS.UserInteraction getUserInteraction() {
      @SuppressWarnings("deprecation")
      io.grafeas.v1.CVSS.UserInteraction result =
          io.grafeas.v1.CVSS.UserInteraction.valueOf(userInteraction_);
      return result == null ? io.grafeas.v1.CVSS.UserInteraction.UNRECOGNIZED : result;
    }
    /**
     * <code>.grafeas.v1.CVSS.UserInteraction user_interaction = 8;</code>
     *
     * @param value The userInteraction to set.
     * @return This builder for chaining.
     */
    public Builder setUserInteraction(io.grafeas.v1.CVSS.UserInteraction value) {
      if (value == null) {
        throw new NullPointerException();
      }

      userInteraction_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.grafeas.v1.CVSS.UserInteraction user_interaction = 8;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearUserInteraction() {

      userInteraction_ = 0;
      onChanged();
      return this;
    }

    private int scope_ = 0;
    /**
     * <code>.grafeas.v1.CVSS.Scope scope = 9;</code>
     *
     * @return The enum numeric value on the wire for scope.
     */
    @java.lang.Override
    public int getScopeValue() {
      return scope_;
    }
    /**
     * <code>.grafeas.v1.CVSS.Scope scope = 9;</code>
     *
     * @param value The enum numeric value on the wire for scope to set.
     * @return This builder for chaining.
     */
    public Builder setScopeValue(int value) {

      scope_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>.grafeas.v1.CVSS.Scope scope = 9;</code>
     *
     * @return The scope.
     */
    @java.lang.Override
    public io.grafeas.v1.CVSS.Scope getScope() {
      @SuppressWarnings("deprecation")
      io.grafeas.v1.CVSS.Scope result = io.grafeas.v1.CVSS.Scope.valueOf(scope_);
      return result == null ? io.grafeas.v1.CVSS.Scope.UNRECOGNIZED : result;
    }
    /**
     * <code>.grafeas.v1.CVSS.Scope scope = 9;</code>
     *
     * @param value The scope to set.
     * @return This builder for chaining.
     */
    public Builder setScope(io.grafeas.v1.CVSS.Scope value) {
      if (value == null) {
        throw new NullPointerException();
      }

      scope_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.grafeas.v1.CVSS.Scope scope = 9;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearScope() {

      scope_ = 0;
      onChanged();
      return this;
    }

    private int confidentialityImpact_ = 0;
    /**
     * <code>.grafeas.v1.CVSS.Impact confidentiality_impact = 10;</code>
     *
     * @return The enum numeric value on the wire for confidentialityImpact.
     */
    @java.lang.Override
    public int getConfidentialityImpactValue() {
      return confidentialityImpact_;
    }
    /**
     * <code>.grafeas.v1.CVSS.Impact confidentiality_impact = 10;</code>
     *
     * @param value The enum numeric value on the wire for confidentialityImpact to set.
     * @return This builder for chaining.
     */
    public Builder setConfidentialityImpactValue(int value) {

      confidentialityImpact_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>.grafeas.v1.CVSS.Impact confidentiality_impact = 10;</code>
     *
     * @return The confidentialityImpact.
     */
    @java.lang.Override
    public io.grafeas.v1.CVSS.Impact getConfidentialityImpact() {
      @SuppressWarnings("deprecation")
      io.grafeas.v1.CVSS.Impact result = io.grafeas.v1.CVSS.Impact.valueOf(confidentialityImpact_);
      return result == null ? io.grafeas.v1.CVSS.Impact.UNRECOGNIZED : result;
    }
    /**
     * <code>.grafeas.v1.CVSS.Impact confidentiality_impact = 10;</code>
     *
     * @param value The confidentialityImpact to set.
     * @return This builder for chaining.
     */
    public Builder setConfidentialityImpact(io.grafeas.v1.CVSS.Impact value) {
      if (value == null) {
        throw new NullPointerException();
      }

      confidentialityImpact_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.grafeas.v1.CVSS.Impact confidentiality_impact = 10;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearConfidentialityImpact() {

      confidentialityImpact_ = 0;
      onChanged();
      return this;
    }

    private int integrityImpact_ = 0;
    /**
     * <code>.grafeas.v1.CVSS.Impact integrity_impact = 11;</code>
     *
     * @return The enum numeric value on the wire for integrityImpact.
     */
    @java.lang.Override
    public int getIntegrityImpactValue() {
      return integrityImpact_;
    }
    /**
     * <code>.grafeas.v1.CVSS.Impact integrity_impact = 11;</code>
     *
     * @param value The enum numeric value on the wire for integrityImpact to set.
     * @return This builder for chaining.
     */
    public Builder setIntegrityImpactValue(int value) {

      integrityImpact_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>.grafeas.v1.CVSS.Impact integrity_impact = 11;</code>
     *
     * @return The integrityImpact.
     */
    @java.lang.Override
    public io.grafeas.v1.CVSS.Impact getIntegrityImpact() {
      @SuppressWarnings("deprecation")
      io.grafeas.v1.CVSS.Impact result = io.grafeas.v1.CVSS.Impact.valueOf(integrityImpact_);
      return result == null ? io.grafeas.v1.CVSS.Impact.UNRECOGNIZED : result;
    }
    /**
     * <code>.grafeas.v1.CVSS.Impact integrity_impact = 11;</code>
     *
     * @param value The integrityImpact to set.
     * @return This builder for chaining.
     */
    public Builder setIntegrityImpact(io.grafeas.v1.CVSS.Impact value) {
      if (value == null) {
        throw new NullPointerException();
      }

      integrityImpact_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.grafeas.v1.CVSS.Impact integrity_impact = 11;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearIntegrityImpact() {

      integrityImpact_ = 0;
      onChanged();
      return this;
    }

    private int availabilityImpact_ = 0;
    /**
     * <code>.grafeas.v1.CVSS.Impact availability_impact = 12;</code>
     *
     * @return The enum numeric value on the wire for availabilityImpact.
     */
    @java.lang.Override
    public int getAvailabilityImpactValue() {
      return availabilityImpact_;
    }
    /**
     * <code>.grafeas.v1.CVSS.Impact availability_impact = 12;</code>
     *
     * @param value The enum numeric value on the wire for availabilityImpact to set.
     * @return This builder for chaining.
     */
    public Builder setAvailabilityImpactValue(int value) {

      availabilityImpact_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>.grafeas.v1.CVSS.Impact availability_impact = 12;</code>
     *
     * @return The availabilityImpact.
     */
    @java.lang.Override
    public io.grafeas.v1.CVSS.Impact getAvailabilityImpact() {
      @SuppressWarnings("deprecation")
      io.grafeas.v1.CVSS.Impact result = io.grafeas.v1.CVSS.Impact.valueOf(availabilityImpact_);
      return result == null ? io.grafeas.v1.CVSS.Impact.UNRECOGNIZED : result;
    }
    /**
     * <code>.grafeas.v1.CVSS.Impact availability_impact = 12;</code>
     *
     * @param value The availabilityImpact to set.
     * @return This builder for chaining.
     */
    public Builder setAvailabilityImpact(io.grafeas.v1.CVSS.Impact value) {
      if (value == null) {
        throw new NullPointerException();
      }

      availabilityImpact_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.grafeas.v1.CVSS.Impact availability_impact = 12;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearAvailabilityImpact() {

      availabilityImpact_ = 0;
      onChanged();
      return this;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:grafeas.v1.CVSS)
  }

  // @@protoc_insertion_point(class_scope:grafeas.v1.CVSS)
  private static final io.grafeas.v1.CVSS DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new io.grafeas.v1.CVSS();
  }

  public static io.grafeas.v1.CVSS getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<CVSS> PARSER =
      new com.google.protobuf.AbstractParser<CVSS>() {
        @java.lang.Override
        public CVSS parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

  public static com.google.protobuf.Parser<CVSS> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<CVSS> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public io.grafeas.v1.CVSS getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}