// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/devtools/containeranalysis/v1beta1/vulnerability/vulnerability.proto

package io.grafeas.v1beta1.vulnerability;

/**
 * <pre>
 * Vulnerability provides metadata about a security vulnerability.
 * </pre>
 *
 * Protobuf type {@code grafeas.v1beta1.vulnerability.Vulnerability}
 */
public  final class Vulnerability extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:grafeas.v1beta1.vulnerability.Vulnerability)
    VulnerabilityOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Vulnerability.newBuilder() to construct.
  private Vulnerability(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private Vulnerability() {
    cvssScore_ = 0F;
    severity_ = 0;
    details_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private Vulnerability(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 13: {

            cvssScore_ = input.readFloat();
            break;
          }
          case 16: {
            int rawValue = input.readEnum();

            severity_ = rawValue;
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
              details_ = new java.util.ArrayList<io.grafeas.v1beta1.vulnerability.Vulnerability.Detail>();
              mutable_bitField0_ |= 0x00000004;
            }
            details_.add(
                input.readMessage(io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.parser(), extensionRegistry));
            break;
          }
          default: {
            if (!parseUnknownFieldProto3(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
        details_ = java.util.Collections.unmodifiableList(details_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grafeas.v1beta1.vulnerability.VulnerabilityOuterClass.internal_static_grafeas_v1beta1_vulnerability_Vulnerability_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grafeas.v1beta1.vulnerability.VulnerabilityOuterClass.internal_static_grafeas_v1beta1_vulnerability_Vulnerability_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grafeas.v1beta1.vulnerability.Vulnerability.class, io.grafeas.v1beta1.vulnerability.Vulnerability.Builder.class);
  }

  public interface DetailOrBuilder extends
      // @@protoc_insertion_point(interface_extends:grafeas.v1beta1.vulnerability.Vulnerability.Detail)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
     * which the vulnerability manifests.  Examples include distro or storage
     * location for vulnerable jar.
     * </pre>
     *
     * <code>string cpe_uri = 1;</code>
     */
    java.lang.String getCpeUri();
    /**
     * <pre>
     * The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
     * which the vulnerability manifests.  Examples include distro or storage
     * location for vulnerable jar.
     * </pre>
     *
     * <code>string cpe_uri = 1;</code>
     */
    com.google.protobuf.ByteString
        getCpeUriBytes();

    /**
     * <pre>
     * The name of the package where the vulnerability was found.
     * </pre>
     *
     * <code>string package = 2;</code>
     */
    java.lang.String getPackage();
    /**
     * <pre>
     * The name of the package where the vulnerability was found.
     * </pre>
     *
     * <code>string package = 2;</code>
     */
    com.google.protobuf.ByteString
        getPackageBytes();

    /**
     * <pre>
     * The min version of the package in which the vulnerability exists.
     * </pre>
     *
     * <code>.grafeas.v1beta1.package.Version min_affected_version = 3;</code>
     */
    boolean hasMinAffectedVersion();
    /**
     * <pre>
     * The min version of the package in which the vulnerability exists.
     * </pre>
     *
     * <code>.grafeas.v1beta1.package.Version min_affected_version = 3;</code>
     */
    io.grafeas.v1beta1.pkg.Version getMinAffectedVersion();
    /**
     * <pre>
     * The min version of the package in which the vulnerability exists.
     * </pre>
     *
     * <code>.grafeas.v1beta1.package.Version min_affected_version = 3;</code>
     */
    io.grafeas.v1beta1.pkg.VersionOrBuilder getMinAffectedVersionOrBuilder();

    /**
     * <pre>
     * The max version of the package in which the vulnerability exists.
     * </pre>
     *
     * <code>.grafeas.v1beta1.package.Version max_affected_version = 4;</code>
     */
    boolean hasMaxAffectedVersion();
    /**
     * <pre>
     * The max version of the package in which the vulnerability exists.
     * </pre>
     *
     * <code>.grafeas.v1beta1.package.Version max_affected_version = 4;</code>
     */
    io.grafeas.v1beta1.pkg.Version getMaxAffectedVersion();
    /**
     * <pre>
     * The max version of the package in which the vulnerability exists.
     * </pre>
     *
     * <code>.grafeas.v1beta1.package.Version max_affected_version = 4;</code>
     */
    io.grafeas.v1beta1.pkg.VersionOrBuilder getMaxAffectedVersionOrBuilder();

    /**
     * <pre>
     * The severity (eg: distro assigned severity) for this vulnerability.
     * </pre>
     *
     * <code>string severity_name = 5;</code>
     */
    java.lang.String getSeverityName();
    /**
     * <pre>
     * The severity (eg: distro assigned severity) for this vulnerability.
     * </pre>
     *
     * <code>string severity_name = 5;</code>
     */
    com.google.protobuf.ByteString
        getSeverityNameBytes();

    /**
     * <pre>
     * A vendor-specific description of this note.
     * </pre>
     *
     * <code>string description = 6;</code>
     */
    java.lang.String getDescription();
    /**
     * <pre>
     * A vendor-specific description of this note.
     * </pre>
     *
     * <code>string description = 6;</code>
     */
    com.google.protobuf.ByteString
        getDescriptionBytes();

    /**
     * <pre>
     * The fix for this specific package version.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;</code>
     */
    boolean hasFixedLocation();
    /**
     * <pre>
     * The fix for this specific package version.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;</code>
     */
    io.grafeas.v1beta1.vulnerability.VulnerabilityLocation getFixedLocation();
    /**
     * <pre>
     * The fix for this specific package version.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;</code>
     */
    io.grafeas.v1beta1.vulnerability.VulnerabilityLocationOrBuilder getFixedLocationOrBuilder();

    /**
     * <pre>
     * The type of package; whether native or non native(ruby gems, node.js
     * packages etc).
     * </pre>
     *
     * <code>string package_type = 8;</code>
     */
    java.lang.String getPackageType();
    /**
     * <pre>
     * The type of package; whether native or non native(ruby gems, node.js
     * packages etc).
     * </pre>
     *
     * <code>string package_type = 8;</code>
     */
    com.google.protobuf.ByteString
        getPackageTypeBytes();

    /**
     * <pre>
     * Whether this detail is obsolete. Occurrences are expected not to point to
     * obsolete details.
     * </pre>
     *
     * <code>bool is_obsolete = 9;</code>
     */
    boolean getIsObsolete();
  }
  /**
   * <pre>
   * Identifies all occurrences of this vulnerability in the package for a
   * specific distro/location. For example: glibc in
   * cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
   * </pre>
   *
   * Protobuf type {@code grafeas.v1beta1.vulnerability.Vulnerability.Detail}
   */
  public  static final class Detail extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:grafeas.v1beta1.vulnerability.Vulnerability.Detail)
      DetailOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Detail.newBuilder() to construct.
    private Detail(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Detail() {
      cpeUri_ = "";
      package_ = "";
      severityName_ = "";
      description_ = "";
      packageType_ = "";
      isObsolete_ = false;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Detail(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              java.lang.String s = input.readStringRequireUtf8();

              cpeUri_ = s;
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              package_ = s;
              break;
            }
            case 26: {
              io.grafeas.v1beta1.pkg.Version.Builder subBuilder = null;
              if (minAffectedVersion_ != null) {
                subBuilder = minAffectedVersion_.toBuilder();
              }
              minAffectedVersion_ = input.readMessage(io.grafeas.v1beta1.pkg.Version.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(minAffectedVersion_);
                minAffectedVersion_ = subBuilder.buildPartial();
              }

              break;
            }
            case 34: {
              io.grafeas.v1beta1.pkg.Version.Builder subBuilder = null;
              if (maxAffectedVersion_ != null) {
                subBuilder = maxAffectedVersion_.toBuilder();
              }
              maxAffectedVersion_ = input.readMessage(io.grafeas.v1beta1.pkg.Version.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(maxAffectedVersion_);
                maxAffectedVersion_ = subBuilder.buildPartial();
              }

              break;
            }
            case 42: {
              java.lang.String s = input.readStringRequireUtf8();

              severityName_ = s;
              break;
            }
            case 50: {
              java.lang.String s = input.readStringRequireUtf8();

              description_ = s;
              break;
            }
            case 58: {
              io.grafeas.v1beta1.vulnerability.VulnerabilityLocation.Builder subBuilder = null;
              if (fixedLocation_ != null) {
                subBuilder = fixedLocation_.toBuilder();
              }
              fixedLocation_ = input.readMessage(io.grafeas.v1beta1.vulnerability.VulnerabilityLocation.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(fixedLocation_);
                fixedLocation_ = subBuilder.buildPartial();
              }

              break;
            }
            case 66: {
              java.lang.String s = input.readStringRequireUtf8();

              packageType_ = s;
              break;
            }
            case 72: {

              isObsolete_ = input.readBool();
              break;
            }
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grafeas.v1beta1.vulnerability.VulnerabilityOuterClass.internal_static_grafeas_v1beta1_vulnerability_Vulnerability_Detail_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grafeas.v1beta1.vulnerability.VulnerabilityOuterClass.internal_static_grafeas_v1beta1_vulnerability_Vulnerability_Detail_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.class, io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.Builder.class);
    }

    public static final int CPE_URI_FIELD_NUMBER = 1;
    private volatile java.lang.Object cpeUri_;
    /**
     * <pre>
     * The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
     * which the vulnerability manifests.  Examples include distro or storage
     * location for vulnerable jar.
     * </pre>
     *
     * <code>string cpe_uri = 1;</code>
     */
    public java.lang.String getCpeUri() {
      java.lang.Object ref = cpeUri_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        cpeUri_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
     * which the vulnerability manifests.  Examples include distro or storage
     * location for vulnerable jar.
     * </pre>
     *
     * <code>string cpe_uri = 1;</code>
     */
    public com.google.protobuf.ByteString
        getCpeUriBytes() {
      java.lang.Object ref = cpeUri_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        cpeUri_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int PACKAGE_FIELD_NUMBER = 2;
    private volatile java.lang.Object package_;
    /**
     * <pre>
     * The name of the package where the vulnerability was found.
     * </pre>
     *
     * <code>string package = 2;</code>
     */
    public java.lang.String getPackage() {
      java.lang.Object ref = package_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        package_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * The name of the package where the vulnerability was found.
     * </pre>
     *
     * <code>string package = 2;</code>
     */
    public com.google.protobuf.ByteString
        getPackageBytes() {
      java.lang.Object ref = package_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        package_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int MIN_AFFECTED_VERSION_FIELD_NUMBER = 3;
    private io.grafeas.v1beta1.pkg.Version minAffectedVersion_;
    /**
     * <pre>
     * The min version of the package in which the vulnerability exists.
     * </pre>
     *
     * <code>.grafeas.v1beta1.package.Version min_affected_version = 3;</code>
     */
    public boolean hasMinAffectedVersion() {
      return minAffectedVersion_ != null;
    }
    /**
     * <pre>
     * The min version of the package in which the vulnerability exists.
     * </pre>
     *
     * <code>.grafeas.v1beta1.package.Version min_affected_version = 3;</code>
     */
    public io.grafeas.v1beta1.pkg.Version getMinAffectedVersion() {
      return minAffectedVersion_ == null ? io.grafeas.v1beta1.pkg.Version.getDefaultInstance() : minAffectedVersion_;
    }
    /**
     * <pre>
     * The min version of the package in which the vulnerability exists.
     * </pre>
     *
     * <code>.grafeas.v1beta1.package.Version min_affected_version = 3;</code>
     */
    public io.grafeas.v1beta1.pkg.VersionOrBuilder getMinAffectedVersionOrBuilder() {
      return getMinAffectedVersion();
    }

    public static final int MAX_AFFECTED_VERSION_FIELD_NUMBER = 4;
    private io.grafeas.v1beta1.pkg.Version maxAffectedVersion_;
    /**
     * <pre>
     * The max version of the package in which the vulnerability exists.
     * </pre>
     *
     * <code>.grafeas.v1beta1.package.Version max_affected_version = 4;</code>
     */
    public boolean hasMaxAffectedVersion() {
      return maxAffectedVersion_ != null;
    }
    /**
     * <pre>
     * The max version of the package in which the vulnerability exists.
     * </pre>
     *
     * <code>.grafeas.v1beta1.package.Version max_affected_version = 4;</code>
     */
    public io.grafeas.v1beta1.pkg.Version getMaxAffectedVersion() {
      return maxAffectedVersion_ == null ? io.grafeas.v1beta1.pkg.Version.getDefaultInstance() : maxAffectedVersion_;
    }
    /**
     * <pre>
     * The max version of the package in which the vulnerability exists.
     * </pre>
     *
     * <code>.grafeas.v1beta1.package.Version max_affected_version = 4;</code>
     */
    public io.grafeas.v1beta1.pkg.VersionOrBuilder getMaxAffectedVersionOrBuilder() {
      return getMaxAffectedVersion();
    }

    public static final int SEVERITY_NAME_FIELD_NUMBER = 5;
    private volatile java.lang.Object severityName_;
    /**
     * <pre>
     * The severity (eg: distro assigned severity) for this vulnerability.
     * </pre>
     *
     * <code>string severity_name = 5;</code>
     */
    public java.lang.String getSeverityName() {
      java.lang.Object ref = severityName_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        severityName_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * The severity (eg: distro assigned severity) for this vulnerability.
     * </pre>
     *
     * <code>string severity_name = 5;</code>
     */
    public com.google.protobuf.ByteString
        getSeverityNameBytes() {
      java.lang.Object ref = severityName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        severityName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int DESCRIPTION_FIELD_NUMBER = 6;
    private volatile java.lang.Object description_;
    /**
     * <pre>
     * A vendor-specific description of this note.
     * </pre>
     *
     * <code>string description = 6;</code>
     */
    public java.lang.String getDescription() {
      java.lang.Object ref = description_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        description_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * A vendor-specific description of this note.
     * </pre>
     *
     * <code>string description = 6;</code>
     */
    public com.google.protobuf.ByteString
        getDescriptionBytes() {
      java.lang.Object ref = description_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        description_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int FIXED_LOCATION_FIELD_NUMBER = 7;
    private io.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixedLocation_;
    /**
     * <pre>
     * The fix for this specific package version.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;</code>
     */
    public boolean hasFixedLocation() {
      return fixedLocation_ != null;
    }
    /**
     * <pre>
     * The fix for this specific package version.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;</code>
     */
    public io.grafeas.v1beta1.vulnerability.VulnerabilityLocation getFixedLocation() {
      return fixedLocation_ == null ? io.grafeas.v1beta1.vulnerability.VulnerabilityLocation.getDefaultInstance() : fixedLocation_;
    }
    /**
     * <pre>
     * The fix for this specific package version.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;</code>
     */
    public io.grafeas.v1beta1.vulnerability.VulnerabilityLocationOrBuilder getFixedLocationOrBuilder() {
      return getFixedLocation();
    }

    public static final int PACKAGE_TYPE_FIELD_NUMBER = 8;
    private volatile java.lang.Object packageType_;
    /**
     * <pre>
     * The type of package; whether native or non native(ruby gems, node.js
     * packages etc).
     * </pre>
     *
     * <code>string package_type = 8;</code>
     */
    public java.lang.String getPackageType() {
      java.lang.Object ref = packageType_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        packageType_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * The type of package; whether native or non native(ruby gems, node.js
     * packages etc).
     * </pre>
     *
     * <code>string package_type = 8;</code>
     */
    public com.google.protobuf.ByteString
        getPackageTypeBytes() {
      java.lang.Object ref = packageType_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        packageType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int IS_OBSOLETE_FIELD_NUMBER = 9;
    private boolean isObsolete_;
    /**
     * <pre>
     * Whether this detail is obsolete. Occurrences are expected not to point to
     * obsolete details.
     * </pre>
     *
     * <code>bool is_obsolete = 9;</code>
     */
    public boolean getIsObsolete() {
      return isObsolete_;
    }

    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 (!getCpeUriBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpeUri_);
      }
      if (!getPackageBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, package_);
      }
      if (minAffectedVersion_ != null) {
        output.writeMessage(3, getMinAffectedVersion());
      }
      if (maxAffectedVersion_ != null) {
        output.writeMessage(4, getMaxAffectedVersion());
      }
      if (!getSeverityNameBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, severityName_);
      }
      if (!getDescriptionBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_);
      }
      if (fixedLocation_ != null) {
        output.writeMessage(7, getFixedLocation());
      }
      if (!getPackageTypeBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 8, packageType_);
      }
      if (isObsolete_ != false) {
        output.writeBool(9, isObsolete_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (!getCpeUriBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpeUri_);
      }
      if (!getPackageBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, package_);
      }
      if (minAffectedVersion_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, getMinAffectedVersion());
      }
      if (maxAffectedVersion_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, getMaxAffectedVersion());
      }
      if (!getSeverityNameBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, severityName_);
      }
      if (!getDescriptionBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_);
      }
      if (fixedLocation_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(7, getFixedLocation());
      }
      if (!getPackageTypeBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, packageType_);
      }
      if (isObsolete_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(9, isObsolete_);
      }
      size += unknownFields.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.v1beta1.vulnerability.Vulnerability.Detail)) {
        return super.equals(obj);
      }
      io.grafeas.v1beta1.vulnerability.Vulnerability.Detail other = (io.grafeas.v1beta1.vulnerability.Vulnerability.Detail) obj;

      boolean result = true;
      result = result && getCpeUri()
          .equals(other.getCpeUri());
      result = result && getPackage()
          .equals(other.getPackage());
      result = result && (hasMinAffectedVersion() == other.hasMinAffectedVersion());
      if (hasMinAffectedVersion()) {
        result = result && getMinAffectedVersion()
            .equals(other.getMinAffectedVersion());
      }
      result = result && (hasMaxAffectedVersion() == other.hasMaxAffectedVersion());
      if (hasMaxAffectedVersion()) {
        result = result && getMaxAffectedVersion()
            .equals(other.getMaxAffectedVersion());
      }
      result = result && getSeverityName()
          .equals(other.getSeverityName());
      result = result && getDescription()
          .equals(other.getDescription());
      result = result && (hasFixedLocation() == other.hasFixedLocation());
      if (hasFixedLocation()) {
        result = result && getFixedLocation()
            .equals(other.getFixedLocation());
      }
      result = result && getPackageType()
          .equals(other.getPackageType());
      result = result && (getIsObsolete()
          == other.getIsObsolete());
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + CPE_URI_FIELD_NUMBER;
      hash = (53 * hash) + getCpeUri().hashCode();
      hash = (37 * hash) + PACKAGE_FIELD_NUMBER;
      hash = (53 * hash) + getPackage().hashCode();
      if (hasMinAffectedVersion()) {
        hash = (37 * hash) + MIN_AFFECTED_VERSION_FIELD_NUMBER;
        hash = (53 * hash) + getMinAffectedVersion().hashCode();
      }
      if (hasMaxAffectedVersion()) {
        hash = (37 * hash) + MAX_AFFECTED_VERSION_FIELD_NUMBER;
        hash = (53 * hash) + getMaxAffectedVersion().hashCode();
      }
      hash = (37 * hash) + SEVERITY_NAME_FIELD_NUMBER;
      hash = (53 * hash) + getSeverityName().hashCode();
      hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
      hash = (53 * hash) + getDescription().hashCode();
      if (hasFixedLocation()) {
        hash = (37 * hash) + FIXED_LOCATION_FIELD_NUMBER;
        hash = (53 * hash) + getFixedLocation().hashCode();
      }
      hash = (37 * hash) + PACKAGE_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getPackageType().hashCode();
      hash = (37 * hash) + IS_OBSOLETE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getIsObsolete());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static io.grafeas.v1beta1.vulnerability.Vulnerability.Detail parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.grafeas.v1beta1.vulnerability.Vulnerability.Detail parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.grafeas.v1beta1.vulnerability.Vulnerability.Detail parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.grafeas.v1beta1.vulnerability.Vulnerability.Detail 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.v1beta1.vulnerability.Vulnerability.Detail parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.grafeas.v1beta1.vulnerability.Vulnerability.Detail parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.grafeas.v1beta1.vulnerability.Vulnerability.Detail parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static io.grafeas.v1beta1.vulnerability.Vulnerability.Detail 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.v1beta1.vulnerability.Vulnerability.Detail parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static io.grafeas.v1beta1.vulnerability.Vulnerability.Detail 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.v1beta1.vulnerability.Vulnerability.Detail parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static io.grafeas.v1beta1.vulnerability.Vulnerability.Detail 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.v1beta1.vulnerability.Vulnerability.Detail 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>
     * Identifies all occurrences of this vulnerability in the package for a
     * specific distro/location. For example: glibc in
     * cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
     * </pre>
     *
     * Protobuf type {@code grafeas.v1beta1.vulnerability.Vulnerability.Detail}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:grafeas.v1beta1.vulnerability.Vulnerability.Detail)
        io.grafeas.v1beta1.vulnerability.Vulnerability.DetailOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return io.grafeas.v1beta1.vulnerability.VulnerabilityOuterClass.internal_static_grafeas_v1beta1_vulnerability_Vulnerability_Detail_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.grafeas.v1beta1.vulnerability.VulnerabilityOuterClass.internal_static_grafeas_v1beta1_vulnerability_Vulnerability_Detail_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.class, io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.Builder.class);
      }

      // Construct using io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        cpeUri_ = "";

        package_ = "";

        if (minAffectedVersionBuilder_ == null) {
          minAffectedVersion_ = null;
        } else {
          minAffectedVersion_ = null;
          minAffectedVersionBuilder_ = null;
        }
        if (maxAffectedVersionBuilder_ == null) {
          maxAffectedVersion_ = null;
        } else {
          maxAffectedVersion_ = null;
          maxAffectedVersionBuilder_ = null;
        }
        severityName_ = "";

        description_ = "";

        if (fixedLocationBuilder_ == null) {
          fixedLocation_ = null;
        } else {
          fixedLocation_ = null;
          fixedLocationBuilder_ = null;
        }
        packageType_ = "";

        isObsolete_ = false;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.grafeas.v1beta1.vulnerability.VulnerabilityOuterClass.internal_static_grafeas_v1beta1_vulnerability_Vulnerability_Detail_descriptor;
      }

      @java.lang.Override
      public io.grafeas.v1beta1.vulnerability.Vulnerability.Detail getDefaultInstanceForType() {
        return io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.getDefaultInstance();
      }

      @java.lang.Override
      public io.grafeas.v1beta1.vulnerability.Vulnerability.Detail build() {
        io.grafeas.v1beta1.vulnerability.Vulnerability.Detail result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public io.grafeas.v1beta1.vulnerability.Vulnerability.Detail buildPartial() {
        io.grafeas.v1beta1.vulnerability.Vulnerability.Detail result = new io.grafeas.v1beta1.vulnerability.Vulnerability.Detail(this);
        result.cpeUri_ = cpeUri_;
        result.package_ = package_;
        if (minAffectedVersionBuilder_ == null) {
          result.minAffectedVersion_ = minAffectedVersion_;
        } else {
          result.minAffectedVersion_ = minAffectedVersionBuilder_.build();
        }
        if (maxAffectedVersionBuilder_ == null) {
          result.maxAffectedVersion_ = maxAffectedVersion_;
        } else {
          result.maxAffectedVersion_ = maxAffectedVersionBuilder_.build();
        }
        result.severityName_ = severityName_;
        result.description_ = description_;
        if (fixedLocationBuilder_ == null) {
          result.fixedLocation_ = fixedLocation_;
        } else {
          result.fixedLocation_ = fixedLocationBuilder_.build();
        }
        result.packageType_ = packageType_;
        result.isObsolete_ = isObsolete_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return (Builder) super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof io.grafeas.v1beta1.vulnerability.Vulnerability.Detail) {
          return mergeFrom((io.grafeas.v1beta1.vulnerability.Vulnerability.Detail)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.grafeas.v1beta1.vulnerability.Vulnerability.Detail other) {
        if (other == io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.getDefaultInstance()) return this;
        if (!other.getCpeUri().isEmpty()) {
          cpeUri_ = other.cpeUri_;
          onChanged();
        }
        if (!other.getPackage().isEmpty()) {
          package_ = other.package_;
          onChanged();
        }
        if (other.hasMinAffectedVersion()) {
          mergeMinAffectedVersion(other.getMinAffectedVersion());
        }
        if (other.hasMaxAffectedVersion()) {
          mergeMaxAffectedVersion(other.getMaxAffectedVersion());
        }
        if (!other.getSeverityName().isEmpty()) {
          severityName_ = other.severityName_;
          onChanged();
        }
        if (!other.getDescription().isEmpty()) {
          description_ = other.description_;
          onChanged();
        }
        if (other.hasFixedLocation()) {
          mergeFixedLocation(other.getFixedLocation());
        }
        if (!other.getPackageType().isEmpty()) {
          packageType_ = other.packageType_;
          onChanged();
        }
        if (other.getIsObsolete() != false) {
          setIsObsolete(other.getIsObsolete());
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        io.grafeas.v1beta1.vulnerability.Vulnerability.Detail parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (io.grafeas.v1beta1.vulnerability.Vulnerability.Detail) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object cpeUri_ = "";
      /**
       * <pre>
       * The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
       * which the vulnerability manifests.  Examples include distro or storage
       * location for vulnerable jar.
       * </pre>
       *
       * <code>string cpe_uri = 1;</code>
       */
      public java.lang.String getCpeUri() {
        java.lang.Object ref = cpeUri_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          cpeUri_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
       * which the vulnerability manifests.  Examples include distro or storage
       * location for vulnerable jar.
       * </pre>
       *
       * <code>string cpe_uri = 1;</code>
       */
      public com.google.protobuf.ByteString
          getCpeUriBytes() {
        java.lang.Object ref = cpeUri_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          cpeUri_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
       * which the vulnerability manifests.  Examples include distro or storage
       * location for vulnerable jar.
       * </pre>
       *
       * <code>string cpe_uri = 1;</code>
       */
      public Builder setCpeUri(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        cpeUri_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
       * which the vulnerability manifests.  Examples include distro or storage
       * location for vulnerable jar.
       * </pre>
       *
       * <code>string cpe_uri = 1;</code>
       */
      public Builder clearCpeUri() {
        
        cpeUri_ = getDefaultInstance().getCpeUri();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
       * which the vulnerability manifests.  Examples include distro or storage
       * location for vulnerable jar.
       * </pre>
       *
       * <code>string cpe_uri = 1;</code>
       */
      public Builder setCpeUriBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        cpeUri_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object package_ = "";
      /**
       * <pre>
       * The name of the package where the vulnerability was found.
       * </pre>
       *
       * <code>string package = 2;</code>
       */
      public java.lang.String getPackage() {
        java.lang.Object ref = package_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          package_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * The name of the package where the vulnerability was found.
       * </pre>
       *
       * <code>string package = 2;</code>
       */
      public com.google.protobuf.ByteString
          getPackageBytes() {
        java.lang.Object ref = package_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          package_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * The name of the package where the vulnerability was found.
       * </pre>
       *
       * <code>string package = 2;</code>
       */
      public Builder setPackage(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        package_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The name of the package where the vulnerability was found.
       * </pre>
       *
       * <code>string package = 2;</code>
       */
      public Builder clearPackage() {
        
        package_ = getDefaultInstance().getPackage();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The name of the package where the vulnerability was found.
       * </pre>
       *
       * <code>string package = 2;</code>
       */
      public Builder setPackageBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        package_ = value;
        onChanged();
        return this;
      }

      private io.grafeas.v1beta1.pkg.Version minAffectedVersion_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          io.grafeas.v1beta1.pkg.Version, io.grafeas.v1beta1.pkg.Version.Builder, io.grafeas.v1beta1.pkg.VersionOrBuilder> minAffectedVersionBuilder_;
      /**
       * <pre>
       * The min version of the package in which the vulnerability exists.
       * </pre>
       *
       * <code>.grafeas.v1beta1.package.Version min_affected_version = 3;</code>
       */
      public boolean hasMinAffectedVersion() {
        return minAffectedVersionBuilder_ != null || minAffectedVersion_ != null;
      }
      /**
       * <pre>
       * The min version of the package in which the vulnerability exists.
       * </pre>
       *
       * <code>.grafeas.v1beta1.package.Version min_affected_version = 3;</code>
       */
      public io.grafeas.v1beta1.pkg.Version getMinAffectedVersion() {
        if (minAffectedVersionBuilder_ == null) {
          return minAffectedVersion_ == null ? io.grafeas.v1beta1.pkg.Version.getDefaultInstance() : minAffectedVersion_;
        } else {
          return minAffectedVersionBuilder_.getMessage();
        }
      }
      /**
       * <pre>
       * The min version of the package in which the vulnerability exists.
       * </pre>
       *
       * <code>.grafeas.v1beta1.package.Version min_affected_version = 3;</code>
       */
      public Builder setMinAffectedVersion(io.grafeas.v1beta1.pkg.Version value) {
        if (minAffectedVersionBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          minAffectedVersion_ = value;
          onChanged();
        } else {
          minAffectedVersionBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <pre>
       * The min version of the package in which the vulnerability exists.
       * </pre>
       *
       * <code>.grafeas.v1beta1.package.Version min_affected_version = 3;</code>
       */
      public Builder setMinAffectedVersion(
          io.grafeas.v1beta1.pkg.Version.Builder builderForValue) {
        if (minAffectedVersionBuilder_ == null) {
          minAffectedVersion_ = builderForValue.build();
          onChanged();
        } else {
          minAffectedVersionBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <pre>
       * The min version of the package in which the vulnerability exists.
       * </pre>
       *
       * <code>.grafeas.v1beta1.package.Version min_affected_version = 3;</code>
       */
      public Builder mergeMinAffectedVersion(io.grafeas.v1beta1.pkg.Version value) {
        if (minAffectedVersionBuilder_ == null) {
          if (minAffectedVersion_ != null) {
            minAffectedVersion_ =
              io.grafeas.v1beta1.pkg.Version.newBuilder(minAffectedVersion_).mergeFrom(value).buildPartial();
          } else {
            minAffectedVersion_ = value;
          }
          onChanged();
        } else {
          minAffectedVersionBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <pre>
       * The min version of the package in which the vulnerability exists.
       * </pre>
       *
       * <code>.grafeas.v1beta1.package.Version min_affected_version = 3;</code>
       */
      public Builder clearMinAffectedVersion() {
        if (minAffectedVersionBuilder_ == null) {
          minAffectedVersion_ = null;
          onChanged();
        } else {
          minAffectedVersion_ = null;
          minAffectedVersionBuilder_ = null;
        }

        return this;
      }
      /**
       * <pre>
       * The min version of the package in which the vulnerability exists.
       * </pre>
       *
       * <code>.grafeas.v1beta1.package.Version min_affected_version = 3;</code>
       */
      public io.grafeas.v1beta1.pkg.Version.Builder getMinAffectedVersionBuilder() {
        
        onChanged();
        return getMinAffectedVersionFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * The min version of the package in which the vulnerability exists.
       * </pre>
       *
       * <code>.grafeas.v1beta1.package.Version min_affected_version = 3;</code>
       */
      public io.grafeas.v1beta1.pkg.VersionOrBuilder getMinAffectedVersionOrBuilder() {
        if (minAffectedVersionBuilder_ != null) {
          return minAffectedVersionBuilder_.getMessageOrBuilder();
        } else {
          return minAffectedVersion_ == null ?
              io.grafeas.v1beta1.pkg.Version.getDefaultInstance() : minAffectedVersion_;
        }
      }
      /**
       * <pre>
       * The min version of the package in which the vulnerability exists.
       * </pre>
       *
       * <code>.grafeas.v1beta1.package.Version min_affected_version = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          io.grafeas.v1beta1.pkg.Version, io.grafeas.v1beta1.pkg.Version.Builder, io.grafeas.v1beta1.pkg.VersionOrBuilder> 
          getMinAffectedVersionFieldBuilder() {
        if (minAffectedVersionBuilder_ == null) {
          minAffectedVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              io.grafeas.v1beta1.pkg.Version, io.grafeas.v1beta1.pkg.Version.Builder, io.grafeas.v1beta1.pkg.VersionOrBuilder>(
                  getMinAffectedVersion(),
                  getParentForChildren(),
                  isClean());
          minAffectedVersion_ = null;
        }
        return minAffectedVersionBuilder_;
      }

      private io.grafeas.v1beta1.pkg.Version maxAffectedVersion_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          io.grafeas.v1beta1.pkg.Version, io.grafeas.v1beta1.pkg.Version.Builder, io.grafeas.v1beta1.pkg.VersionOrBuilder> maxAffectedVersionBuilder_;
      /**
       * <pre>
       * The max version of the package in which the vulnerability exists.
       * </pre>
       *
       * <code>.grafeas.v1beta1.package.Version max_affected_version = 4;</code>
       */
      public boolean hasMaxAffectedVersion() {
        return maxAffectedVersionBuilder_ != null || maxAffectedVersion_ != null;
      }
      /**
       * <pre>
       * The max version of the package in which the vulnerability exists.
       * </pre>
       *
       * <code>.grafeas.v1beta1.package.Version max_affected_version = 4;</code>
       */
      public io.grafeas.v1beta1.pkg.Version getMaxAffectedVersion() {
        if (maxAffectedVersionBuilder_ == null) {
          return maxAffectedVersion_ == null ? io.grafeas.v1beta1.pkg.Version.getDefaultInstance() : maxAffectedVersion_;
        } else {
          return maxAffectedVersionBuilder_.getMessage();
        }
      }
      /**
       * <pre>
       * The max version of the package in which the vulnerability exists.
       * </pre>
       *
       * <code>.grafeas.v1beta1.package.Version max_affected_version = 4;</code>
       */
      public Builder setMaxAffectedVersion(io.grafeas.v1beta1.pkg.Version value) {
        if (maxAffectedVersionBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          maxAffectedVersion_ = value;
          onChanged();
        } else {
          maxAffectedVersionBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <pre>
       * The max version of the package in which the vulnerability exists.
       * </pre>
       *
       * <code>.grafeas.v1beta1.package.Version max_affected_version = 4;</code>
       */
      public Builder setMaxAffectedVersion(
          io.grafeas.v1beta1.pkg.Version.Builder builderForValue) {
        if (maxAffectedVersionBuilder_ == null) {
          maxAffectedVersion_ = builderForValue.build();
          onChanged();
        } else {
          maxAffectedVersionBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <pre>
       * The max version of the package in which the vulnerability exists.
       * </pre>
       *
       * <code>.grafeas.v1beta1.package.Version max_affected_version = 4;</code>
       */
      public Builder mergeMaxAffectedVersion(io.grafeas.v1beta1.pkg.Version value) {
        if (maxAffectedVersionBuilder_ == null) {
          if (maxAffectedVersion_ != null) {
            maxAffectedVersion_ =
              io.grafeas.v1beta1.pkg.Version.newBuilder(maxAffectedVersion_).mergeFrom(value).buildPartial();
          } else {
            maxAffectedVersion_ = value;
          }
          onChanged();
        } else {
          maxAffectedVersionBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <pre>
       * The max version of the package in which the vulnerability exists.
       * </pre>
       *
       * <code>.grafeas.v1beta1.package.Version max_affected_version = 4;</code>
       */
      public Builder clearMaxAffectedVersion() {
        if (maxAffectedVersionBuilder_ == null) {
          maxAffectedVersion_ = null;
          onChanged();
        } else {
          maxAffectedVersion_ = null;
          maxAffectedVersionBuilder_ = null;
        }

        return this;
      }
      /**
       * <pre>
       * The max version of the package in which the vulnerability exists.
       * </pre>
       *
       * <code>.grafeas.v1beta1.package.Version max_affected_version = 4;</code>
       */
      public io.grafeas.v1beta1.pkg.Version.Builder getMaxAffectedVersionBuilder() {
        
        onChanged();
        return getMaxAffectedVersionFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * The max version of the package in which the vulnerability exists.
       * </pre>
       *
       * <code>.grafeas.v1beta1.package.Version max_affected_version = 4;</code>
       */
      public io.grafeas.v1beta1.pkg.VersionOrBuilder getMaxAffectedVersionOrBuilder() {
        if (maxAffectedVersionBuilder_ != null) {
          return maxAffectedVersionBuilder_.getMessageOrBuilder();
        } else {
          return maxAffectedVersion_ == null ?
              io.grafeas.v1beta1.pkg.Version.getDefaultInstance() : maxAffectedVersion_;
        }
      }
      /**
       * <pre>
       * The max version of the package in which the vulnerability exists.
       * </pre>
       *
       * <code>.grafeas.v1beta1.package.Version max_affected_version = 4;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          io.grafeas.v1beta1.pkg.Version, io.grafeas.v1beta1.pkg.Version.Builder, io.grafeas.v1beta1.pkg.VersionOrBuilder> 
          getMaxAffectedVersionFieldBuilder() {
        if (maxAffectedVersionBuilder_ == null) {
          maxAffectedVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              io.grafeas.v1beta1.pkg.Version, io.grafeas.v1beta1.pkg.Version.Builder, io.grafeas.v1beta1.pkg.VersionOrBuilder>(
                  getMaxAffectedVersion(),
                  getParentForChildren(),
                  isClean());
          maxAffectedVersion_ = null;
        }
        return maxAffectedVersionBuilder_;
      }

      private java.lang.Object severityName_ = "";
      /**
       * <pre>
       * The severity (eg: distro assigned severity) for this vulnerability.
       * </pre>
       *
       * <code>string severity_name = 5;</code>
       */
      public java.lang.String getSeverityName() {
        java.lang.Object ref = severityName_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          severityName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * The severity (eg: distro assigned severity) for this vulnerability.
       * </pre>
       *
       * <code>string severity_name = 5;</code>
       */
      public com.google.protobuf.ByteString
          getSeverityNameBytes() {
        java.lang.Object ref = severityName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          severityName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * The severity (eg: distro assigned severity) for this vulnerability.
       * </pre>
       *
       * <code>string severity_name = 5;</code>
       */
      public Builder setSeverityName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        severityName_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The severity (eg: distro assigned severity) for this vulnerability.
       * </pre>
       *
       * <code>string severity_name = 5;</code>
       */
      public Builder clearSeverityName() {
        
        severityName_ = getDefaultInstance().getSeverityName();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The severity (eg: distro assigned severity) for this vulnerability.
       * </pre>
       *
       * <code>string severity_name = 5;</code>
       */
      public Builder setSeverityNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        severityName_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object description_ = "";
      /**
       * <pre>
       * A vendor-specific description of this note.
       * </pre>
       *
       * <code>string description = 6;</code>
       */
      public java.lang.String getDescription() {
        java.lang.Object ref = description_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          description_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * A vendor-specific description of this note.
       * </pre>
       *
       * <code>string description = 6;</code>
       */
      public com.google.protobuf.ByteString
          getDescriptionBytes() {
        java.lang.Object ref = description_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          description_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * A vendor-specific description of this note.
       * </pre>
       *
       * <code>string description = 6;</code>
       */
      public Builder setDescription(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        description_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * A vendor-specific description of this note.
       * </pre>
       *
       * <code>string description = 6;</code>
       */
      public Builder clearDescription() {
        
        description_ = getDefaultInstance().getDescription();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * A vendor-specific description of this note.
       * </pre>
       *
       * <code>string description = 6;</code>
       */
      public Builder setDescriptionBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        description_ = value;
        onChanged();
        return this;
      }

      private io.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixedLocation_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          io.grafeas.v1beta1.vulnerability.VulnerabilityLocation, io.grafeas.v1beta1.vulnerability.VulnerabilityLocation.Builder, io.grafeas.v1beta1.vulnerability.VulnerabilityLocationOrBuilder> fixedLocationBuilder_;
      /**
       * <pre>
       * The fix for this specific package version.
       * </pre>
       *
       * <code>.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;</code>
       */
      public boolean hasFixedLocation() {
        return fixedLocationBuilder_ != null || fixedLocation_ != null;
      }
      /**
       * <pre>
       * The fix for this specific package version.
       * </pre>
       *
       * <code>.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;</code>
       */
      public io.grafeas.v1beta1.vulnerability.VulnerabilityLocation getFixedLocation() {
        if (fixedLocationBuilder_ == null) {
          return fixedLocation_ == null ? io.grafeas.v1beta1.vulnerability.VulnerabilityLocation.getDefaultInstance() : fixedLocation_;
        } else {
          return fixedLocationBuilder_.getMessage();
        }
      }
      /**
       * <pre>
       * The fix for this specific package version.
       * </pre>
       *
       * <code>.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;</code>
       */
      public Builder setFixedLocation(io.grafeas.v1beta1.vulnerability.VulnerabilityLocation value) {
        if (fixedLocationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          fixedLocation_ = value;
          onChanged();
        } else {
          fixedLocationBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <pre>
       * The fix for this specific package version.
       * </pre>
       *
       * <code>.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;</code>
       */
      public Builder setFixedLocation(
          io.grafeas.v1beta1.vulnerability.VulnerabilityLocation.Builder builderForValue) {
        if (fixedLocationBuilder_ == null) {
          fixedLocation_ = builderForValue.build();
          onChanged();
        } else {
          fixedLocationBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <pre>
       * The fix for this specific package version.
       * </pre>
       *
       * <code>.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;</code>
       */
      public Builder mergeFixedLocation(io.grafeas.v1beta1.vulnerability.VulnerabilityLocation value) {
        if (fixedLocationBuilder_ == null) {
          if (fixedLocation_ != null) {
            fixedLocation_ =
              io.grafeas.v1beta1.vulnerability.VulnerabilityLocation.newBuilder(fixedLocation_).mergeFrom(value).buildPartial();
          } else {
            fixedLocation_ = value;
          }
          onChanged();
        } else {
          fixedLocationBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <pre>
       * The fix for this specific package version.
       * </pre>
       *
       * <code>.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;</code>
       */
      public Builder clearFixedLocation() {
        if (fixedLocationBuilder_ == null) {
          fixedLocation_ = null;
          onChanged();
        } else {
          fixedLocation_ = null;
          fixedLocationBuilder_ = null;
        }

        return this;
      }
      /**
       * <pre>
       * The fix for this specific package version.
       * </pre>
       *
       * <code>.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;</code>
       */
      public io.grafeas.v1beta1.vulnerability.VulnerabilityLocation.Builder getFixedLocationBuilder() {
        
        onChanged();
        return getFixedLocationFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * The fix for this specific package version.
       * </pre>
       *
       * <code>.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;</code>
       */
      public io.grafeas.v1beta1.vulnerability.VulnerabilityLocationOrBuilder getFixedLocationOrBuilder() {
        if (fixedLocationBuilder_ != null) {
          return fixedLocationBuilder_.getMessageOrBuilder();
        } else {
          return fixedLocation_ == null ?
              io.grafeas.v1beta1.vulnerability.VulnerabilityLocation.getDefaultInstance() : fixedLocation_;
        }
      }
      /**
       * <pre>
       * The fix for this specific package version.
       * </pre>
       *
       * <code>.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          io.grafeas.v1beta1.vulnerability.VulnerabilityLocation, io.grafeas.v1beta1.vulnerability.VulnerabilityLocation.Builder, io.grafeas.v1beta1.vulnerability.VulnerabilityLocationOrBuilder> 
          getFixedLocationFieldBuilder() {
        if (fixedLocationBuilder_ == null) {
          fixedLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              io.grafeas.v1beta1.vulnerability.VulnerabilityLocation, io.grafeas.v1beta1.vulnerability.VulnerabilityLocation.Builder, io.grafeas.v1beta1.vulnerability.VulnerabilityLocationOrBuilder>(
                  getFixedLocation(),
                  getParentForChildren(),
                  isClean());
          fixedLocation_ = null;
        }
        return fixedLocationBuilder_;
      }

      private java.lang.Object packageType_ = "";
      /**
       * <pre>
       * The type of package; whether native or non native(ruby gems, node.js
       * packages etc).
       * </pre>
       *
       * <code>string package_type = 8;</code>
       */
      public java.lang.String getPackageType() {
        java.lang.Object ref = packageType_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          packageType_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * The type of package; whether native or non native(ruby gems, node.js
       * packages etc).
       * </pre>
       *
       * <code>string package_type = 8;</code>
       */
      public com.google.protobuf.ByteString
          getPackageTypeBytes() {
        java.lang.Object ref = packageType_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          packageType_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * The type of package; whether native or non native(ruby gems, node.js
       * packages etc).
       * </pre>
       *
       * <code>string package_type = 8;</code>
       */
      public Builder setPackageType(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        packageType_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The type of package; whether native or non native(ruby gems, node.js
       * packages etc).
       * </pre>
       *
       * <code>string package_type = 8;</code>
       */
      public Builder clearPackageType() {
        
        packageType_ = getDefaultInstance().getPackageType();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The type of package; whether native or non native(ruby gems, node.js
       * packages etc).
       * </pre>
       *
       * <code>string package_type = 8;</code>
       */
      public Builder setPackageTypeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        packageType_ = value;
        onChanged();
        return this;
      }

      private boolean isObsolete_ ;
      /**
       * <pre>
       * Whether this detail is obsolete. Occurrences are expected not to point to
       * obsolete details.
       * </pre>
       *
       * <code>bool is_obsolete = 9;</code>
       */
      public boolean getIsObsolete() {
        return isObsolete_;
      }
      /**
       * <pre>
       * Whether this detail is obsolete. Occurrences are expected not to point to
       * obsolete details.
       * </pre>
       *
       * <code>bool is_obsolete = 9;</code>
       */
      public Builder setIsObsolete(boolean value) {
        
        isObsolete_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Whether this detail is obsolete. Occurrences are expected not to point to
       * obsolete details.
       * </pre>
       *
       * <code>bool is_obsolete = 9;</code>
       */
      public Builder clearIsObsolete() {
        
        isObsolete_ = false;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:grafeas.v1beta1.vulnerability.Vulnerability.Detail)
    }

    // @@protoc_insertion_point(class_scope:grafeas.v1beta1.vulnerability.Vulnerability.Detail)
    private static final io.grafeas.v1beta1.vulnerability.Vulnerability.Detail DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.grafeas.v1beta1.vulnerability.Vulnerability.Detail();
    }

    public static io.grafeas.v1beta1.vulnerability.Vulnerability.Detail getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<Detail>
        PARSER = new com.google.protobuf.AbstractParser<Detail>() {
      @java.lang.Override
      public Detail parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Detail(input, extensionRegistry);
      }
    };

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

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

    @java.lang.Override
    public io.grafeas.v1beta1.vulnerability.Vulnerability.Detail getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private int bitField0_;
  public static final int CVSS_SCORE_FIELD_NUMBER = 1;
  private float cvssScore_;
  /**
   * <pre>
   * The CVSS score for this vulnerability.
   * </pre>
   *
   * <code>float cvss_score = 1;</code>
   */
  public float getCvssScore() {
    return cvssScore_;
  }

  public static final int SEVERITY_FIELD_NUMBER = 2;
  private int severity_;
  /**
   * <pre>
   * Note provider assigned impact of the vulnerability.
   * </pre>
   *
   * <code>.grafeas.v1beta1.vulnerability.Severity severity = 2;</code>
   */
  public int getSeverityValue() {
    return severity_;
  }
  /**
   * <pre>
   * Note provider assigned impact of the vulnerability.
   * </pre>
   *
   * <code>.grafeas.v1beta1.vulnerability.Severity severity = 2;</code>
   */
  public io.grafeas.v1beta1.vulnerability.Severity getSeverity() {
    @SuppressWarnings("deprecation")
    io.grafeas.v1beta1.vulnerability.Severity result = io.grafeas.v1beta1.vulnerability.Severity.valueOf(severity_);
    return result == null ? io.grafeas.v1beta1.vulnerability.Severity.UNRECOGNIZED : result;
  }

  public static final int DETAILS_FIELD_NUMBER = 3;
  private java.util.List<io.grafeas.v1beta1.vulnerability.Vulnerability.Detail> details_;
  /**
   * <pre>
   * All information about the package to specifically identify this
   * vulnerability. One entry per (version range and cpe_uri) the package
   * vulnerability has manifested in.
   * </pre>
   *
   * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
   */
  public java.util.List<io.grafeas.v1beta1.vulnerability.Vulnerability.Detail> getDetailsList() {
    return details_;
  }
  /**
   * <pre>
   * All information about the package to specifically identify this
   * vulnerability. One entry per (version range and cpe_uri) the package
   * vulnerability has manifested in.
   * </pre>
   *
   * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
   */
  public java.util.List<? extends io.grafeas.v1beta1.vulnerability.Vulnerability.DetailOrBuilder> 
      getDetailsOrBuilderList() {
    return details_;
  }
  /**
   * <pre>
   * All information about the package to specifically identify this
   * vulnerability. One entry per (version range and cpe_uri) the package
   * vulnerability has manifested in.
   * </pre>
   *
   * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
   */
  public int getDetailsCount() {
    return details_.size();
  }
  /**
   * <pre>
   * All information about the package to specifically identify this
   * vulnerability. One entry per (version range and cpe_uri) the package
   * vulnerability has manifested in.
   * </pre>
   *
   * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
   */
  public io.grafeas.v1beta1.vulnerability.Vulnerability.Detail getDetails(int index) {
    return details_.get(index);
  }
  /**
   * <pre>
   * All information about the package to specifically identify this
   * vulnerability. One entry per (version range and cpe_uri) the package
   * vulnerability has manifested in.
   * </pre>
   *
   * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
   */
  public io.grafeas.v1beta1.vulnerability.Vulnerability.DetailOrBuilder getDetailsOrBuilder(
      int index) {
    return details_.get(index);
  }

  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 (cvssScore_ != 0F) {
      output.writeFloat(1, cvssScore_);
    }
    if (severity_ != io.grafeas.v1beta1.vulnerability.Severity.SEVERITY_UNSPECIFIED.getNumber()) {
      output.writeEnum(2, severity_);
    }
    for (int i = 0; i < details_.size(); i++) {
      output.writeMessage(3, details_.get(i));
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (cvssScore_ != 0F) {
      size += com.google.protobuf.CodedOutputStream
        .computeFloatSize(1, cvssScore_);
    }
    if (severity_ != io.grafeas.v1beta1.vulnerability.Severity.SEVERITY_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(2, severity_);
    }
    for (int i = 0; i < details_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, details_.get(i));
    }
    size += unknownFields.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.v1beta1.vulnerability.Vulnerability)) {
      return super.equals(obj);
    }
    io.grafeas.v1beta1.vulnerability.Vulnerability other = (io.grafeas.v1beta1.vulnerability.Vulnerability) obj;

    boolean result = true;
    result = result && (
        java.lang.Float.floatToIntBits(getCvssScore())
        == java.lang.Float.floatToIntBits(
            other.getCvssScore()));
    result = result && severity_ == other.severity_;
    result = result && getDetailsList()
        .equals(other.getDetailsList());
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + CVSS_SCORE_FIELD_NUMBER;
    hash = (53 * hash) + java.lang.Float.floatToIntBits(
        getCvssScore());
    hash = (37 * hash) + SEVERITY_FIELD_NUMBER;
    hash = (53 * hash) + severity_;
    if (getDetailsCount() > 0) {
      hash = (37 * hash) + DETAILS_FIELD_NUMBER;
      hash = (53 * hash) + getDetailsList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.grafeas.v1beta1.vulnerability.Vulnerability parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grafeas.v1beta1.vulnerability.Vulnerability parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grafeas.v1beta1.vulnerability.Vulnerability parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grafeas.v1beta1.vulnerability.Vulnerability 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.v1beta1.vulnerability.Vulnerability parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grafeas.v1beta1.vulnerability.Vulnerability parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grafeas.v1beta1.vulnerability.Vulnerability parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grafeas.v1beta1.vulnerability.Vulnerability 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.v1beta1.vulnerability.Vulnerability parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.grafeas.v1beta1.vulnerability.Vulnerability 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.v1beta1.vulnerability.Vulnerability parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grafeas.v1beta1.vulnerability.Vulnerability 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.v1beta1.vulnerability.Vulnerability 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>
   * Vulnerability provides metadata about a security vulnerability.
   * </pre>
   *
   * Protobuf type {@code grafeas.v1beta1.vulnerability.Vulnerability}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:grafeas.v1beta1.vulnerability.Vulnerability)
      io.grafeas.v1beta1.vulnerability.VulnerabilityOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grafeas.v1beta1.vulnerability.VulnerabilityOuterClass.internal_static_grafeas_v1beta1_vulnerability_Vulnerability_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grafeas.v1beta1.vulnerability.VulnerabilityOuterClass.internal_static_grafeas_v1beta1_vulnerability_Vulnerability_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grafeas.v1beta1.vulnerability.Vulnerability.class, io.grafeas.v1beta1.vulnerability.Vulnerability.Builder.class);
    }

    // Construct using io.grafeas.v1beta1.vulnerability.Vulnerability.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getDetailsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      cvssScore_ = 0F;

      severity_ = 0;

      if (detailsBuilder_ == null) {
        details_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
      } else {
        detailsBuilder_.clear();
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grafeas.v1beta1.vulnerability.VulnerabilityOuterClass.internal_static_grafeas_v1beta1_vulnerability_Vulnerability_descriptor;
    }

    @java.lang.Override
    public io.grafeas.v1beta1.vulnerability.Vulnerability getDefaultInstanceForType() {
      return io.grafeas.v1beta1.vulnerability.Vulnerability.getDefaultInstance();
    }

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

    @java.lang.Override
    public io.grafeas.v1beta1.vulnerability.Vulnerability buildPartial() {
      io.grafeas.v1beta1.vulnerability.Vulnerability result = new io.grafeas.v1beta1.vulnerability.Vulnerability(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.cvssScore_ = cvssScore_;
      result.severity_ = severity_;
      if (detailsBuilder_ == null) {
        if (((bitField0_ & 0x00000004) == 0x00000004)) {
          details_ = java.util.Collections.unmodifiableList(details_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.details_ = details_;
      } else {
        result.details_ = detailsBuilder_.build();
      }
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return (Builder) super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof io.grafeas.v1beta1.vulnerability.Vulnerability) {
        return mergeFrom((io.grafeas.v1beta1.vulnerability.Vulnerability)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grafeas.v1beta1.vulnerability.Vulnerability other) {
      if (other == io.grafeas.v1beta1.vulnerability.Vulnerability.getDefaultInstance()) return this;
      if (other.getCvssScore() != 0F) {
        setCvssScore(other.getCvssScore());
      }
      if (other.severity_ != 0) {
        setSeverityValue(other.getSeverityValue());
      }
      if (detailsBuilder_ == null) {
        if (!other.details_.isEmpty()) {
          if (details_.isEmpty()) {
            details_ = other.details_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureDetailsIsMutable();
            details_.addAll(other.details_);
          }
          onChanged();
        }
      } else {
        if (!other.details_.isEmpty()) {
          if (detailsBuilder_.isEmpty()) {
            detailsBuilder_.dispose();
            detailsBuilder_ = null;
            details_ = other.details_;
            bitField0_ = (bitField0_ & ~0x00000004);
            detailsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getDetailsFieldBuilder() : null;
          } else {
            detailsBuilder_.addAllMessages(other.details_);
          }
        }
      }
      this.mergeUnknownFields(other.unknownFields);
      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 {
      io.grafeas.v1beta1.vulnerability.Vulnerability parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grafeas.v1beta1.vulnerability.Vulnerability) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private float cvssScore_ ;
    /**
     * <pre>
     * The CVSS score for this vulnerability.
     * </pre>
     *
     * <code>float cvss_score = 1;</code>
     */
    public float getCvssScore() {
      return cvssScore_;
    }
    /**
     * <pre>
     * The CVSS score for this vulnerability.
     * </pre>
     *
     * <code>float cvss_score = 1;</code>
     */
    public Builder setCvssScore(float value) {
      
      cvssScore_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The CVSS score for this vulnerability.
     * </pre>
     *
     * <code>float cvss_score = 1;</code>
     */
    public Builder clearCvssScore() {
      
      cvssScore_ = 0F;
      onChanged();
      return this;
    }

    private int severity_ = 0;
    /**
     * <pre>
     * Note provider assigned impact of the vulnerability.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.Severity severity = 2;</code>
     */
    public int getSeverityValue() {
      return severity_;
    }
    /**
     * <pre>
     * Note provider assigned impact of the vulnerability.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.Severity severity = 2;</code>
     */
    public Builder setSeverityValue(int value) {
      severity_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Note provider assigned impact of the vulnerability.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.Severity severity = 2;</code>
     */
    public io.grafeas.v1beta1.vulnerability.Severity getSeverity() {
      @SuppressWarnings("deprecation")
      io.grafeas.v1beta1.vulnerability.Severity result = io.grafeas.v1beta1.vulnerability.Severity.valueOf(severity_);
      return result == null ? io.grafeas.v1beta1.vulnerability.Severity.UNRECOGNIZED : result;
    }
    /**
     * <pre>
     * Note provider assigned impact of the vulnerability.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.Severity severity = 2;</code>
     */
    public Builder setSeverity(io.grafeas.v1beta1.vulnerability.Severity value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      severity_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Note provider assigned impact of the vulnerability.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.Severity severity = 2;</code>
     */
    public Builder clearSeverity() {
      
      severity_ = 0;
      onChanged();
      return this;
    }

    private java.util.List<io.grafeas.v1beta1.vulnerability.Vulnerability.Detail> details_ =
      java.util.Collections.emptyList();
    private void ensureDetailsIsMutable() {
      if (!((bitField0_ & 0x00000004) == 0x00000004)) {
        details_ = new java.util.ArrayList<io.grafeas.v1beta1.vulnerability.Vulnerability.Detail>(details_);
        bitField0_ |= 0x00000004;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grafeas.v1beta1.vulnerability.Vulnerability.Detail, io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.Builder, io.grafeas.v1beta1.vulnerability.Vulnerability.DetailOrBuilder> detailsBuilder_;

    /**
     * <pre>
     * All information about the package to specifically identify this
     * vulnerability. One entry per (version range and cpe_uri) the package
     * vulnerability has manifested in.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
     */
    public java.util.List<io.grafeas.v1beta1.vulnerability.Vulnerability.Detail> getDetailsList() {
      if (detailsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(details_);
      } else {
        return detailsBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * All information about the package to specifically identify this
     * vulnerability. One entry per (version range and cpe_uri) the package
     * vulnerability has manifested in.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
     */
    public int getDetailsCount() {
      if (detailsBuilder_ == null) {
        return details_.size();
      } else {
        return detailsBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * All information about the package to specifically identify this
     * vulnerability. One entry per (version range and cpe_uri) the package
     * vulnerability has manifested in.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
     */
    public io.grafeas.v1beta1.vulnerability.Vulnerability.Detail getDetails(int index) {
      if (detailsBuilder_ == null) {
        return details_.get(index);
      } else {
        return detailsBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * All information about the package to specifically identify this
     * vulnerability. One entry per (version range and cpe_uri) the package
     * vulnerability has manifested in.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
     */
    public Builder setDetails(
        int index, io.grafeas.v1beta1.vulnerability.Vulnerability.Detail value) {
      if (detailsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDetailsIsMutable();
        details_.set(index, value);
        onChanged();
      } else {
        detailsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * All information about the package to specifically identify this
     * vulnerability. One entry per (version range and cpe_uri) the package
     * vulnerability has manifested in.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
     */
    public Builder setDetails(
        int index, io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.Builder builderForValue) {
      if (detailsBuilder_ == null) {
        ensureDetailsIsMutable();
        details_.set(index, builderForValue.build());
        onChanged();
      } else {
        detailsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * All information about the package to specifically identify this
     * vulnerability. One entry per (version range and cpe_uri) the package
     * vulnerability has manifested in.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
     */
    public Builder addDetails(io.grafeas.v1beta1.vulnerability.Vulnerability.Detail value) {
      if (detailsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDetailsIsMutable();
        details_.add(value);
        onChanged();
      } else {
        detailsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     * All information about the package to specifically identify this
     * vulnerability. One entry per (version range and cpe_uri) the package
     * vulnerability has manifested in.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
     */
    public Builder addDetails(
        int index, io.grafeas.v1beta1.vulnerability.Vulnerability.Detail value) {
      if (detailsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDetailsIsMutable();
        details_.add(index, value);
        onChanged();
      } else {
        detailsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * All information about the package to specifically identify this
     * vulnerability. One entry per (version range and cpe_uri) the package
     * vulnerability has manifested in.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
     */
    public Builder addDetails(
        io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.Builder builderForValue) {
      if (detailsBuilder_ == null) {
        ensureDetailsIsMutable();
        details_.add(builderForValue.build());
        onChanged();
      } else {
        detailsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * All information about the package to specifically identify this
     * vulnerability. One entry per (version range and cpe_uri) the package
     * vulnerability has manifested in.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
     */
    public Builder addDetails(
        int index, io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.Builder builderForValue) {
      if (detailsBuilder_ == null) {
        ensureDetailsIsMutable();
        details_.add(index, builderForValue.build());
        onChanged();
      } else {
        detailsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * All information about the package to specifically identify this
     * vulnerability. One entry per (version range and cpe_uri) the package
     * vulnerability has manifested in.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
     */
    public Builder addAllDetails(
        java.lang.Iterable<? extends io.grafeas.v1beta1.vulnerability.Vulnerability.Detail> values) {
      if (detailsBuilder_ == null) {
        ensureDetailsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, details_);
        onChanged();
      } else {
        detailsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * All information about the package to specifically identify this
     * vulnerability. One entry per (version range and cpe_uri) the package
     * vulnerability has manifested in.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
     */
    public Builder clearDetails() {
      if (detailsBuilder_ == null) {
        details_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        detailsBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * All information about the package to specifically identify this
     * vulnerability. One entry per (version range and cpe_uri) the package
     * vulnerability has manifested in.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
     */
    public Builder removeDetails(int index) {
      if (detailsBuilder_ == null) {
        ensureDetailsIsMutable();
        details_.remove(index);
        onChanged();
      } else {
        detailsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * All information about the package to specifically identify this
     * vulnerability. One entry per (version range and cpe_uri) the package
     * vulnerability has manifested in.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
     */
    public io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.Builder getDetailsBuilder(
        int index) {
      return getDetailsFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * All information about the package to specifically identify this
     * vulnerability. One entry per (version range and cpe_uri) the package
     * vulnerability has manifested in.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
     */
    public io.grafeas.v1beta1.vulnerability.Vulnerability.DetailOrBuilder getDetailsOrBuilder(
        int index) {
      if (detailsBuilder_ == null) {
        return details_.get(index);  } else {
        return detailsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * All information about the package to specifically identify this
     * vulnerability. One entry per (version range and cpe_uri) the package
     * vulnerability has manifested in.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
     */
    public java.util.List<? extends io.grafeas.v1beta1.vulnerability.Vulnerability.DetailOrBuilder> 
         getDetailsOrBuilderList() {
      if (detailsBuilder_ != null) {
        return detailsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(details_);
      }
    }
    /**
     * <pre>
     * All information about the package to specifically identify this
     * vulnerability. One entry per (version range and cpe_uri) the package
     * vulnerability has manifested in.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
     */
    public io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.Builder addDetailsBuilder() {
      return getDetailsFieldBuilder().addBuilder(
          io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.getDefaultInstance());
    }
    /**
     * <pre>
     * All information about the package to specifically identify this
     * vulnerability. One entry per (version range and cpe_uri) the package
     * vulnerability has manifested in.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
     */
    public io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.Builder addDetailsBuilder(
        int index) {
      return getDetailsFieldBuilder().addBuilder(
          index, io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.getDefaultInstance());
    }
    /**
     * <pre>
     * All information about the package to specifically identify this
     * vulnerability. One entry per (version range and cpe_uri) the package
     * vulnerability has manifested in.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;</code>
     */
    public java.util.List<io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.Builder> 
         getDetailsBuilderList() {
      return getDetailsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grafeas.v1beta1.vulnerability.Vulnerability.Detail, io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.Builder, io.grafeas.v1beta1.vulnerability.Vulnerability.DetailOrBuilder> 
        getDetailsFieldBuilder() {
      if (detailsBuilder_ == null) {
        detailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            io.grafeas.v1beta1.vulnerability.Vulnerability.Detail, io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.Builder, io.grafeas.v1beta1.vulnerability.Vulnerability.DetailOrBuilder>(
                details_,
                ((bitField0_ & 0x00000004) == 0x00000004),
                getParentForChildren(),
                isClean());
        details_ = null;
      }
      return detailsBuilder_;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:grafeas.v1beta1.vulnerability.Vulnerability)
  }

  // @@protoc_insertion_point(class_scope:grafeas.v1beta1.vulnerability.Vulnerability)
  private static final io.grafeas.v1beta1.vulnerability.Vulnerability DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.grafeas.v1beta1.vulnerability.Vulnerability();
  }

  public static io.grafeas.v1beta1.vulnerability.Vulnerability getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<Vulnerability>
      PARSER = new com.google.protobuf.AbstractParser<Vulnerability>() {
    @java.lang.Override
    public Vulnerability parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new Vulnerability(input, extensionRegistry);
    }
  };

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

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

  @java.lang.Override
  public io.grafeas.v1beta1.vulnerability.Vulnerability getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

