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

package io.grafeas.v1;

/**
 *
 *
 *

 * An occurrence of a severity vulnerability on a resource.
 *

 *
 * Protobuf type {@code grafeas.v1.VulnerabilityOccurrence}
 */
public final class VulnerabilityOccurrence extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:grafeas.v1.VulnerabilityOccurrence)
    VulnerabilityOccurrenceOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use VulnerabilityOccurrence.newBuilder() to construct.
  private VulnerabilityOccurrence(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private VulnerabilityOccurrence() {
    type_ = "";
    severity_ = 0;
    packageIssue_ = java.util.Collections.emptyList();
    shortDescription_ = "";
    longDescription_ = "";
    relatedUrls_ = java.util.Collections.emptyList();
    effectiveSeverity_ = 0;
    cvssVersion_ = 0;
  }

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

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

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

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

  public interface PackageIssueOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:grafeas.v1.VulnerabilityOccurrence.PackageIssue)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     *

     * Required. The [CPE URI](https://cpe.mitre.org/specification/) this
     * vulnerability was found in.
     *

     *
     * string affected_cpe_uri = 1;
     *
     * @return The affectedCpeUri.
     */
    java.lang.String getAffectedCpeUri();
    /**
     *
     *
     *

     * Required. The [CPE URI](https://cpe.mitre.org/specification/) this
     * vulnerability was found in.
     *

     *
     * string affected_cpe_uri = 1;
     *
     * @return The bytes for affectedCpeUri.
     */
    com.google.protobuf.ByteString getAffectedCpeUriBytes();

    /**
     *
     *
     *

     * Required. The package this vulnerability was found in.
     *

     *
     * string affected_package = 2;
     *
     * @return The affectedPackage.
     */
    java.lang.String getAffectedPackage();
    /**
     *
     *
     *

     * Required. The package this vulnerability was found in.
     *

     *
     * string affected_package = 2;
     *
     * @return The bytes for affectedPackage.
     */
    com.google.protobuf.ByteString getAffectedPackageBytes();

    /**
     *
     *
     *

     * Required. The version of the package that is installed on the resource
     * affected by this vulnerability.
     *

     *
     * .grafeas.v1.Version affected_version = 3;
     *
     * @return Whether the affectedVersion field is set.
     */
    boolean hasAffectedVersion();
    /**
     *
     *
     *

     * Required. The version of the package that is installed on the resource
     * affected by this vulnerability.
     *

     *
     * .grafeas.v1.Version affected_version = 3;
     *
     * @return The affectedVersion.
     */
    io.grafeas.v1.Version getAffectedVersion();
    /**
     *
     *
     *

     * Required. The version of the package that is installed on the resource
     * affected by this vulnerability.
     *

     *
     * .grafeas.v1.Version affected_version = 3;
     */
    io.grafeas.v1.VersionOrBuilder getAffectedVersionOrBuilder();

    /**
     *
     *
     *

     * The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability
     * was fixed in. It is possible for this to be different from the
     * affected_cpe_uri.
     *

     *
     * string fixed_cpe_uri = 4;
     *
     * @return The fixedCpeUri.
     */
    java.lang.String getFixedCpeUri();
    /**
     *
     *
     *

     * The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability
     * was fixed in. It is possible for this to be different from the
     * affected_cpe_uri.
     *

     *
     * string fixed_cpe_uri = 4;
     *
     * @return The bytes for fixedCpeUri.
     */
    com.google.protobuf.ByteString getFixedCpeUriBytes();

    /**
     *
     *
     *

     * The package this vulnerability was fixed in. It is possible for this to
     * be different from the affected_package.
     *

     *
     * string fixed_package = 5;
     *
     * @return The fixedPackage.
     */
    java.lang.String getFixedPackage();
    /**
     *
     *
     *

     * The package this vulnerability was fixed in. It is possible for this to
     * be different from the affected_package.
     *

     *
     * string fixed_package = 5;
     *
     * @return The bytes for fixedPackage.
     */
    com.google.protobuf.ByteString getFixedPackageBytes();

    /**
     *
     *
     *

     * Required. The version of the package this vulnerability was fixed in.
     * Setting this to VersionKind.MAXIMUM means no fix is yet available.
     *

     *
     * .grafeas.v1.Version fixed_version = 6;
     *
     * @return Whether the fixedVersion field is set.
     */
    boolean hasFixedVersion();
    /**
     *
     *
     *

     * Required. The version of the package this vulnerability was fixed in.
     * Setting this to VersionKind.MAXIMUM means no fix is yet available.
     *

     *
     * .grafeas.v1.Version fixed_version = 6;
     *
     * @return The fixedVersion.
     */
    io.grafeas.v1.Version getFixedVersion();
    /**
     *
     *
     *

     * Required. The version of the package this vulnerability was fixed in.
     * Setting this to VersionKind.MAXIMUM means no fix is yet available.
     *

     *
     * .grafeas.v1.Version fixed_version = 6;
     */
    io.grafeas.v1.VersionOrBuilder getFixedVersionOrBuilder();

    /**
     *
     *
     *

     * Output only. Whether a fix is available for this package.
     *

     *
     * bool fix_available = 7;
     *
     * @return The fixAvailable.
     */
    boolean getFixAvailable();

    /**
     *
     *
     *

     * The type of package (e.g. OS, MAVEN, GO).
     *

     *
     * string package_type = 8;
     *
     * @return The packageType.
     */
    java.lang.String getPackageType();
    /**
     *
     *
     *

     * The type of package (e.g. OS, MAVEN, GO).
     *

     *
     * string package_type = 8;
     *
     * @return The bytes for packageType.
     */
    com.google.protobuf.ByteString getPackageTypeBytes();

    /**
     *
     *
     *

     * The distro or language system assigned severity for this vulnerability
     * when that is available and note provider assigned severity when it is not
     * available.
     *

     *
     *
     * .grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     *
     *
     * @return The enum numeric value on the wire for effectiveSeverity.
     */
    int getEffectiveSeverityValue();
    /**
     *
     *
     *

     * The distro or language system assigned severity for this vulnerability
     * when that is available and note provider assigned severity when it is not
     * available.
     *

     *
     *
     * .grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     *
     *
     * @return The effectiveSeverity.
     */
    io.grafeas.v1.Severity getEffectiveSeverity();

    /**
     *
     *
     *

     * The location at which this package was found.
     *

     *
     * repeated .grafeas.v1.FileLocation file_location = 10;
     */
    java.util.List<io.grafeas.v1.FileLocation> getFileLocationList();
    /**
     *
     *
     *

     * The location at which this package was found.
     *

     *
     * repeated .grafeas.v1.FileLocation file_location = 10;
     */
    io.grafeas.v1.FileLocation getFileLocation(int index);
    /**
     *
     *
     *

     * The location at which this package was found.
     *

     *
     * repeated .grafeas.v1.FileLocation file_location = 10;
     */
    int getFileLocationCount();
    /**
     *
     *
     *

     * The location at which this package was found.
     *

     *
     * repeated .grafeas.v1.FileLocation file_location = 10;
     */
    java.util.List<? extends io.grafeas.v1.FileLocationOrBuilder> getFileLocationOrBuilderList();
    /**
     *
     *
     *

     * The location at which this package was found.
     *

     *
     * repeated .grafeas.v1.FileLocation file_location = 10;
     */
    io.grafeas.v1.FileLocationOrBuilder getFileLocationOrBuilder(int index);
  }
  /**
   *
   *
   *

   * A detail for a distro and package this vulnerability occurrence was found
   * in and its associated fix (if one is available).
   *

   *
   * Protobuf type {@code grafeas.v1.VulnerabilityOccurrence.PackageIssue}
   */
  public static final class PackageIssue extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:grafeas.v1.VulnerabilityOccurrence.PackageIssue)
      PackageIssueOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use PackageIssue.newBuilder() to construct.
    private PackageIssue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private PackageIssue() {
      affectedCpeUri_ = "";
      affectedPackage_ = "";
      fixedCpeUri_ = "";
      fixedPackage_ = "";
      packageType_ = "";
      effectiveSeverity_ = 0;
      fileLocation_ = java.util.Collections.emptyList();
    }

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

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

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grafeas.v1.Vulnerability
          .internal_static_grafeas_v1_VulnerabilityOccurrence_PackageIssue_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grafeas.v1.VulnerabilityOccurrence.PackageIssue.class,
              io.grafeas.v1.VulnerabilityOccurrence.PackageIssue.Builder.class);
    }

    public static final int AFFECTED_CPE_URI_FIELD_NUMBER = 1;
    private volatile java.lang.Object affectedCpeUri_;
    /**
     *
     *
     *

     * Required. The [CPE URI](https://cpe.mitre.org/specification/) this
     * vulnerability was found in.
     *

     *
     * string affected_cpe_uri = 1;
     *
     * @return The affectedCpeUri.
     */
    @java.lang.Override
    public java.lang.String getAffectedCpeUri() {
      java.lang.Object ref = affectedCpeUri_;
      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();
        affectedCpeUri_ = s;
        return s;
      }
    }
    /**
     *
     *
     *

     * Required. The [CPE URI](https://cpe.mitre.org/specification/) this
     * vulnerability was found in.
     *

     *
     * string affected_cpe_uri = 1;
     *
     * @return The bytes for affectedCpeUri.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getAffectedCpeUriBytes() {
      java.lang.Object ref = affectedCpeUri_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        affectedCpeUri_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int AFFECTED_PACKAGE_FIELD_NUMBER = 2;
    private volatile java.lang.Object affectedPackage_;
    /**
     *
     *
     *

     * Required. The package this vulnerability was found in.
     *

     *
     * string affected_package = 2;
     *
     * @return The affectedPackage.
     */
    @java.lang.Override
    public java.lang.String getAffectedPackage() {
      java.lang.Object ref = affectedPackage_;
      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();
        affectedPackage_ = s;
        return s;
      }
    }
    /**
     *
     *
     *

     * Required. The package this vulnerability was found in.
     *

     *
     * string affected_package = 2;
     *
     * @return The bytes for affectedPackage.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getAffectedPackageBytes() {
      java.lang.Object ref = affectedPackage_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        affectedPackage_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int AFFECTED_VERSION_FIELD_NUMBER = 3;
    private io.grafeas.v1.Version affectedVersion_;
    /**
     *
     *
     *

     * Required. The version of the package that is installed on the resource
     * affected by this vulnerability.
     *

     *
     * .grafeas.v1.Version affected_version = 3;
     *
     * @return Whether the affectedVersion field is set.
     */
    @java.lang.Override
    public boolean hasAffectedVersion() {
      return affectedVersion_ != null;
    }
    /**
     *
     *
     *

     * Required. The version of the package that is installed on the resource
     * affected by this vulnerability.
     *

     *
     * .grafeas.v1.Version affected_version = 3;
     *
     * @return The affectedVersion.
     */
    @java.lang.Override
    public io.grafeas.v1.Version getAffectedVersion() {
      return affectedVersion_ == null
          ? io.grafeas.v1.Version.getDefaultInstance()
          : affectedVersion_;
    }
    /**
     *
     *
     *

     * Required. The version of the package that is installed on the resource
     * affected by this vulnerability.
     *

     *
     * .grafeas.v1.Version affected_version = 3;
     */
    @java.lang.Override
    public io.grafeas.v1.VersionOrBuilder getAffectedVersionOrBuilder() {
      return getAffectedVersion();
    }

    public static final int FIXED_CPE_URI_FIELD_NUMBER = 4;
    private volatile java.lang.Object fixedCpeUri_;
    /**
     *
     *
     *

     * The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability
     * was fixed in. It is possible for this to be different from the
     * affected_cpe_uri.
     *

     *
     * string fixed_cpe_uri = 4;
     *
     * @return The fixedCpeUri.
     */
    @java.lang.Override
    public java.lang.String getFixedCpeUri() {
      java.lang.Object ref = fixedCpeUri_;
      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();
        fixedCpeUri_ = s;
        return s;
      }
    }
    /**
     *
     *
     *

     * The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability
     * was fixed in. It is possible for this to be different from the
     * affected_cpe_uri.
     *

     *
     * string fixed_cpe_uri = 4;
     *
     * @return The bytes for fixedCpeUri.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getFixedCpeUriBytes() {
      java.lang.Object ref = fixedCpeUri_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        fixedCpeUri_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int FIXED_PACKAGE_FIELD_NUMBER = 5;
    private volatile java.lang.Object fixedPackage_;
    /**
     *
     *
     *

     * The package this vulnerability was fixed in. It is possible for this to
     * be different from the affected_package.
     *

     *
     * string fixed_package = 5;
     *
     * @return The fixedPackage.
     */
    @java.lang.Override
    public java.lang.String getFixedPackage() {
      java.lang.Object ref = fixedPackage_;
      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();
        fixedPackage_ = s;
        return s;
      }
    }
    /**
     *
     *
     *

     * The package this vulnerability was fixed in. It is possible for this to
     * be different from the affected_package.
     *

     *
     * string fixed_package = 5;
     *
     * @return The bytes for fixedPackage.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getFixedPackageBytes() {
      java.lang.Object ref = fixedPackage_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        fixedPackage_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int FIXED_VERSION_FIELD_NUMBER = 6;
    private io.grafeas.v1.Version fixedVersion_;
    /**
     *
     *
     *

     * Required. The version of the package this vulnerability was fixed in.
     * Setting this to VersionKind.MAXIMUM means no fix is yet available.
     *

     *
     * .grafeas.v1.Version fixed_version = 6;
     *
     * @return Whether the fixedVersion field is set.
     */
    @java.lang.Override
    public boolean hasFixedVersion() {
      return fixedVersion_ != null;
    }
    /**
     *
     *
     *

     * Required. The version of the package this vulnerability was fixed in.
     * Setting this to VersionKind.MAXIMUM means no fix is yet available.
     *

     *
     * .grafeas.v1.Version fixed_version = 6;
     *
     * @return The fixedVersion.
     */
    @java.lang.Override
    public io.grafeas.v1.Version getFixedVersion() {
      return fixedVersion_ == null ? io.grafeas.v1.Version.getDefaultInstance() : fixedVersion_;
    }
    /**
     *
     *
     *

     * Required. The version of the package this vulnerability was fixed in.
     * Setting this to VersionKind.MAXIMUM means no fix is yet available.
     *

     *
     * .grafeas.v1.Version fixed_version = 6;
     */
    @java.lang.Override
    public io.grafeas.v1.VersionOrBuilder getFixedVersionOrBuilder() {
      return getFixedVersion();
    }

    public static final int FIX_AVAILABLE_FIELD_NUMBER = 7;
    private boolean fixAvailable_;
    /**
     *
     *
     *

     * Output only. Whether a fix is available for this package.
     *

     *
     * bool fix_available = 7;
     *
     * @return The fixAvailable.
     */
    @java.lang.Override
    public boolean getFixAvailable() {
      return fixAvailable_;
    }

    public static final int PACKAGE_TYPE_FIELD_NUMBER = 8;
    private volatile java.lang.Object packageType_;
    /**
     *
     *
     *

     * The type of package (e.g. OS, MAVEN, GO).
     *

     *
     * string package_type = 8;
     *
     * @return The packageType.
     */
    @java.lang.Override
    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;
      }
    }
    /**
     *
     *
     *

     * The type of package (e.g. OS, MAVEN, GO).
     *

     *
     * string package_type = 8;
     *
     * @return The bytes for packageType.
     */
    @java.lang.Override
    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 EFFECTIVE_SEVERITY_FIELD_NUMBER = 9;
    private int effectiveSeverity_;
    /**
     *
     *
     *

     * The distro or language system assigned severity for this vulnerability
     * when that is available and note provider assigned severity when it is not
     * available.
     *

     *
     *
     * .grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     *
     *
     * @return The enum numeric value on the wire for effectiveSeverity.
     */
    @java.lang.Override
    public int getEffectiveSeverityValue() {
      return effectiveSeverity_;
    }
    /**
     *
     *
     *

     * The distro or language system assigned severity for this vulnerability
     * when that is available and note provider assigned severity when it is not
     * available.
     *

     *
     *
     * .grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     *
     *
     * @return The effectiveSeverity.
     */
    @java.lang.Override
    public io.grafeas.v1.Severity getEffectiveSeverity() {
      @SuppressWarnings("deprecation")
      io.grafeas.v1.Severity result = io.grafeas.v1.Severity.valueOf(effectiveSeverity_);
      return result == null ? io.grafeas.v1.Severity.UNRECOGNIZED : result;
    }

    public static final int FILE_LOCATION_FIELD_NUMBER = 10;
    private java.util.List<io.grafeas.v1.FileLocation> fileLocation_;
    /**
     *
     *
     *

     * The location at which this package was found.
     *

     *
     * repeated .grafeas.v1.FileLocation file_location = 10;
     */
    @java.lang.Override
    public java.util.List<io.grafeas.v1.FileLocation> getFileLocationList() {
      return fileLocation_;
    }
    /**
     *
     *
     *

     * The location at which this package was found.
     *

     *
     * repeated .grafeas.v1.FileLocation file_location = 10;
     */
    @java.lang.Override
    public java.util.List<? extends io.grafeas.v1.FileLocationOrBuilder>
        getFileLocationOrBuilderList() {
      return fileLocation_;
    }
    /**
     *
     *
     *

     * The location at which this package was found.
     *

     *
     * repeated .grafeas.v1.FileLocation file_location = 10;
     */
    @java.lang.Override
    public int getFileLocationCount() {
      return fileLocation_.size();
    }
    /**
     *
     *
     *

     * The location at which this package was found.
     *

     *
     * repeated .grafeas.v1.FileLocation file_location = 10;
     */
    @java.lang.Override
    public io.grafeas.v1.FileLocation getFileLocation(int index) {
      return fileLocation_.get(index);
    }
    /**
     *
     *
     *

     * The location at which this package was found.
     *

     *
     * repeated .grafeas.v1.FileLocation file_location = 10;
     */
    @java.lang.Override
    public io.grafeas.v1.FileLocationOrBuilder getFileLocationOrBuilder(int index) {
      return fileLocation_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(affectedCpeUri_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, affectedCpeUri_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(affectedPackage_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, affectedPackage_);
      }
      if (affectedVersion_ != null) {
        output.writeMessage(3, getAffectedVersion());
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fixedCpeUri_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, fixedCpeUri_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fixedPackage_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fixedPackage_);
      }
      if (fixedVersion_ != null) {
        output.writeMessage(6, getFixedVersion());
      }
      if (fixAvailable_ != false) {
        output.writeBool(7, fixAvailable_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageType_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 8, packageType_);
      }
      if (effectiveSeverity_ != io.grafeas.v1.Severity.SEVERITY_UNSPECIFIED.getNumber()) {
        output.writeEnum(9, effectiveSeverity_);
      }
      for (int i = 0; i < fileLocation_.size(); i++) {
        output.writeMessage(10, fileLocation_.get(i));
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(affectedCpeUri_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, affectedCpeUri_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(affectedPackage_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, affectedPackage_);
      }
      if (affectedVersion_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAffectedVersion());
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fixedCpeUri_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, fixedCpeUri_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fixedPackage_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, fixedPackage_);
      }
      if (fixedVersion_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getFixedVersion());
      }
      if (fixAvailable_ != false) {
        size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, fixAvailable_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageType_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, packageType_);
      }
      if (effectiveSeverity_ != io.grafeas.v1.Severity.SEVERITY_UNSPECIFIED.getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, effectiveSeverity_);
      }
      for (int i = 0; i < fileLocation_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, fileLocation_.get(i));
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

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

      if (!getAffectedCpeUri().equals(other.getAffectedCpeUri())) return false;
      if (!getAffectedPackage().equals(other.getAffectedPackage())) return false;
      if (hasAffectedVersion() != other.hasAffectedVersion()) return false;
      if (hasAffectedVersion()) {
        if (!getAffectedVersion().equals(other.getAffectedVersion())) return false;
      }
      if (!getFixedCpeUri().equals(other.getFixedCpeUri())) return false;
      if (!getFixedPackage().equals(other.getFixedPackage())) return false;
      if (hasFixedVersion() != other.hasFixedVersion()) return false;
      if (hasFixedVersion()) {
        if (!getFixedVersion().equals(other.getFixedVersion())) return false;
      }
      if (getFixAvailable() != other.getFixAvailable()) return false;
      if (!getPackageType().equals(other.getPackageType())) return false;
      if (effectiveSeverity_ != other.effectiveSeverity_) return false;
      if (!getFileLocationList().equals(other.getFileLocationList())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + AFFECTED_CPE_URI_FIELD_NUMBER;
      hash = (53 * hash) + getAffectedCpeUri().hashCode();
      hash = (37 * hash) + AFFECTED_PACKAGE_FIELD_NUMBER;
      hash = (53 * hash) + getAffectedPackage().hashCode();
      if (hasAffectedVersion()) {
        hash = (37 * hash) + AFFECTED_VERSION_FIELD_NUMBER;
        hash = (53 * hash) + getAffectedVersion().hashCode();
      }
      hash = (37 * hash) + FIXED_CPE_URI_FIELD_NUMBER;
      hash = (53 * hash) + getFixedCpeUri().hashCode();
      hash = (37 * hash) + FIXED_PACKAGE_FIELD_NUMBER;
      hash = (53 * hash) + getFixedPackage().hashCode();
      if (hasFixedVersion()) {
        hash = (37 * hash) + FIXED_VERSION_FIELD_NUMBER;
        hash = (53 * hash) + getFixedVersion().hashCode();
      }
      hash = (37 * hash) + FIX_AVAILABLE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFixAvailable());
      hash = (37 * hash) + PACKAGE_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getPackageType().hashCode();
      hash = (37 * hash) + EFFECTIVE_SEVERITY_FIELD_NUMBER;
      hash = (53 * hash) + effectiveSeverity_;
      if (getFileLocationCount() > 0) {
        hash = (37 * hash) + FILE_LOCATION_FIELD_NUMBER;
        hash = (53 * hash) + getFileLocationList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    public static Builder newBuilder(io.grafeas.v1.VulnerabilityOccurrence.PackageIssue 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;
    }
    /**
     *
     *
     *

     * A detail for a distro and package this vulnerability occurrence was found
     * in and its associated fix (if one is available).
     *

     *
     * Protobuf type {@code grafeas.v1.VulnerabilityOccurrence.PackageIssue}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:grafeas.v1.VulnerabilityOccurrence.PackageIssue)
        io.grafeas.v1.VulnerabilityOccurrence.PackageIssueOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return io.grafeas.v1.Vulnerability
            .internal_static_grafeas_v1_VulnerabilityOccurrence_PackageIssue_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.grafeas.v1.Vulnerability
            .internal_static_grafeas_v1_VulnerabilityOccurrence_PackageIssue_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.grafeas.v1.VulnerabilityOccurrence.PackageIssue.class,
                io.grafeas.v1.VulnerabilityOccurrence.PackageIssue.Builder.class);
      }

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

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        affectedCpeUri_ = "";

        affectedPackage_ = "";

        if (affectedVersionBuilder_ == null) {
          affectedVersion_ = null;
        } else {
          affectedVersion_ = null;
          affectedVersionBuilder_ = null;
        }
        fixedCpeUri_ = "";

        fixedPackage_ = "";

        if (fixedVersionBuilder_ == null) {
          fixedVersion_ = null;
        } else {
          fixedVersion_ = null;
          fixedVersionBuilder_ = null;
        }
        fixAvailable_ = false;

        packageType_ = "";

        effectiveSeverity_ = 0;

        if (fileLocationBuilder_ == null) {
          fileLocation_ = java.util.Collections.emptyList();
        } else {
          fileLocation_ = null;
          fileLocationBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

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

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

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

      @java.lang.Override
      public io.grafeas.v1.VulnerabilityOccurrence.PackageIssue buildPartial() {
        io.grafeas.v1.VulnerabilityOccurrence.PackageIssue result =
            new io.grafeas.v1.VulnerabilityOccurrence.PackageIssue(this);
        int from_bitField0_ = bitField0_;
        result.affectedCpeUri_ = affectedCpeUri_;
        result.affectedPackage_ = affectedPackage_;
        if (affectedVersionBuilder_ == null) {
          result.affectedVersion_ = affectedVersion_;
        } else {
          result.affectedVersion_ = affectedVersionBuilder_.build();
        }
        result.fixedCpeUri_ = fixedCpeUri_;
        result.fixedPackage_ = fixedPackage_;
        if (fixedVersionBuilder_ == null) {
          result.fixedVersion_ = fixedVersion_;
        } else {
          result.fixedVersion_ = fixedVersionBuilder_.build();
        }
        result.fixAvailable_ = fixAvailable_;
        result.packageType_ = packageType_;
        result.effectiveSeverity_ = effectiveSeverity_;
        if (fileLocationBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            fileLocation_ = java.util.Collections.unmodifiableList(fileLocation_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.fileLocation_ = fileLocation_;
        } else {
          result.fileLocation_ = fileLocationBuilder_.build();
        }
        onBuilt();
        return result;
      }

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

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

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

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

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

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

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

      public Builder mergeFrom(io.grafeas.v1.VulnerabilityOccurrence.PackageIssue other) {
        if (other == io.grafeas.v1.VulnerabilityOccurrence.PackageIssue.getDefaultInstance())
          return this;
        if (!other.getAffectedCpeUri().isEmpty()) {
          affectedCpeUri_ = other.affectedCpeUri_;
          onChanged();
        }
        if (!other.getAffectedPackage().isEmpty()) {
          affectedPackage_ = other.affectedPackage_;
          onChanged();
        }
        if (other.hasAffectedVersion()) {
          mergeAffectedVersion(other.getAffectedVersion());
        }
        if (!other.getFixedCpeUri().isEmpty()) {
          fixedCpeUri_ = other.fixedCpeUri_;
          onChanged();
        }
        if (!other.getFixedPackage().isEmpty()) {
          fixedPackage_ = other.fixedPackage_;
          onChanged();
        }
        if (other.hasFixedVersion()) {
          mergeFixedVersion(other.getFixedVersion());
        }
        if (other.getFixAvailable() != false) {
          setFixAvailable(other.getFixAvailable());
        }
        if (!other.getPackageType().isEmpty()) {
          packageType_ = other.packageType_;
          onChanged();
        }
        if (other.effectiveSeverity_ != 0) {
          setEffectiveSeverityValue(other.getEffectiveSeverityValue());
        }
        if (fileLocationBuilder_ == null) {
          if (!other.fileLocation_.isEmpty()) {
            if (fileLocation_.isEmpty()) {
              fileLocation_ = other.fileLocation_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureFileLocationIsMutable();
              fileLocation_.addAll(other.fileLocation_);
            }
            onChanged();
          }
        } else {
          if (!other.fileLocation_.isEmpty()) {
            if (fileLocationBuilder_.isEmpty()) {
              fileLocationBuilder_.dispose();
              fileLocationBuilder_ = null;
              fileLocation_ = other.fileLocation_;
              bitField0_ = (bitField0_ & ~0x00000001);
              fileLocationBuilder_ =
                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                      ? getFileLocationFieldBuilder()
                      : null;
            } else {
              fileLocationBuilder_.addAllMessages(other.fileLocation_);
            }
          }
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

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

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

                  break;
                } // case 10
              case 18:
                {
                  affectedPackage_ = input.readStringRequireUtf8();

                  break;
                } // case 18
              case 26:
                {
                  input.readMessage(
                      getAffectedVersionFieldBuilder().getBuilder(), extensionRegistry);

                  break;
                } // case 26
              case 34:
                {
                  fixedCpeUri_ = input.readStringRequireUtf8();

                  break;
                } // case 34
              case 42:
                {
                  fixedPackage_ = input.readStringRequireUtf8();

                  break;
                } // case 42
              case 50:
                {
                  input.readMessage(getFixedVersionFieldBuilder().getBuilder(), extensionRegistry);

                  break;
                } // case 50
              case 56:
                {
                  fixAvailable_ = input.readBool();

                  break;
                } // case 56
              case 66:
                {
                  packageType_ = input.readStringRequireUtf8();

                  break;
                } // case 66
              case 72:
                {
                  effectiveSeverity_ = input.readEnum();

                  break;
                } // case 72
              case 82:
                {
                  io.grafeas.v1.FileLocation m =
                      input.readMessage(io.grafeas.v1.FileLocation.parser(), extensionRegistry);
                  if (fileLocationBuilder_ == null) {
                    ensureFileLocationIsMutable();
                    fileLocation_.add(m);
                  } else {
                    fileLocationBuilder_.addMessage(m);
                  }
                  break;
                } // case 82
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

      private java.lang.Object affectedCpeUri_ = "";
      /**
       *
       *
       *

       * Required. The [CPE URI](https://cpe.mitre.org/specification/) this
       * vulnerability was found in.
       *

       *
       * string affected_cpe_uri = 1;
       *
       * @return The affectedCpeUri.
       */
      public java.lang.String getAffectedCpeUri() {
        java.lang.Object ref = affectedCpeUri_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          affectedCpeUri_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       *

       * Required. The [CPE URI](https://cpe.mitre.org/specification/) this
       * vulnerability was found in.
       *

       *
       * string affected_cpe_uri = 1;
       *
       * @return The bytes for affectedCpeUri.
       */
      public com.google.protobuf.ByteString getAffectedCpeUriBytes() {
        java.lang.Object ref = affectedCpeUri_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          affectedCpeUri_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       *

       * Required. The [CPE URI](https://cpe.mitre.org/specification/) this
       * vulnerability was found in.
       *

       *
       * string affected_cpe_uri = 1;
       *
       * @param value The affectedCpeUri to set.
       * @return This builder for chaining.
       */
      public Builder setAffectedCpeUri(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }

        affectedCpeUri_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       *

       * Required. The [CPE URI](https://cpe.mitre.org/specification/) this
       * vulnerability was found in.
       *

       *
       * string affected_cpe_uri = 1;
       *
       * @return This builder for chaining.
       */
      public Builder clearAffectedCpeUri() {

        affectedCpeUri_ = getDefaultInstance().getAffectedCpeUri();
        onChanged();
        return this;
      }
      /**
       *
       *
       *

       * Required. The [CPE URI](https://cpe.mitre.org/specification/) this
       * vulnerability was found in.
       *

       *
       * string affected_cpe_uri = 1;
       *
       * @param value The bytes for affectedCpeUri to set.
       * @return This builder for chaining.
       */
      public Builder setAffectedCpeUriBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);

        affectedCpeUri_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object affectedPackage_ = "";
      /**
       *
       *
       *

       * Required. The package this vulnerability was found in.
       *

       *
       * string affected_package = 2;
       *
       * @return The affectedPackage.
       */
      public java.lang.String getAffectedPackage() {
        java.lang.Object ref = affectedPackage_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          affectedPackage_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       *

       * Required. The package this vulnerability was found in.
       *

       *
       * string affected_package = 2;
       *
       * @return The bytes for affectedPackage.
       */
      public com.google.protobuf.ByteString getAffectedPackageBytes() {
        java.lang.Object ref = affectedPackage_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          affectedPackage_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       *

       * Required. The package this vulnerability was found in.
       *

       *
       * string affected_package = 2;
       *
       * @param value The affectedPackage to set.
       * @return This builder for chaining.
       */
      public Builder setAffectedPackage(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }

        affectedPackage_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       *

       * Required. The package this vulnerability was found in.
       *

       *
       * string affected_package = 2;
       *
       * @return This builder for chaining.
       */
      public Builder clearAffectedPackage() {

        affectedPackage_ = getDefaultInstance().getAffectedPackage();
        onChanged();
        return this;
      }
      /**
       *
       *
       *

       * Required. The package this vulnerability was found in.
       *

       *
       * string affected_package = 2;
       *
       * @param value The bytes for affectedPackage to set.
       * @return This builder for chaining.
       */
      public Builder setAffectedPackageBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);

        affectedPackage_ = value;
        onChanged();
        return this;
      }

      private io.grafeas.v1.Version affectedVersion_;
      private com.google.protobuf.SingleFieldBuilderV3<
              io.grafeas.v1.Version, io.grafeas.v1.Version.Builder, io.grafeas.v1.VersionOrBuilder>
          affectedVersionBuilder_;
      /**
       *
       *
       *

       * Required. The version of the package that is installed on the resource
       * affected by this vulnerability.
       *

       *
       * .grafeas.v1.Version affected_version = 3;
       *
       * @return Whether the affectedVersion field is set.
       */
      public boolean hasAffectedVersion() {
        return affectedVersionBuilder_ != null || affectedVersion_ != null;
      }
      /**
       *
       *
       *

       * Required. The version of the package that is installed on the resource
       * affected by this vulnerability.
       *

       *
       * .grafeas.v1.Version affected_version = 3;
       *
       * @return The affectedVersion.
       */
      public io.grafeas.v1.Version getAffectedVersion() {
        if (affectedVersionBuilder_ == null) {
          return affectedVersion_ == null
              ? io.grafeas.v1.Version.getDefaultInstance()
              : affectedVersion_;
        } else {
          return affectedVersionBuilder_.getMessage();
        }
      }
      /**
       *
       *
       *

       * Required. The version of the package that is installed on the resource
       * affected by this vulnerability.
       *

       *
       * .grafeas.v1.Version affected_version = 3;
       */
      public Builder setAffectedVersion(io.grafeas.v1.Version value) {
        if (affectedVersionBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          affectedVersion_ = value;
          onChanged();
        } else {
          affectedVersionBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       *
       *
       *

       * Required. The version of the package that is installed on the resource
       * affected by this vulnerability.
       *

       *
       * .grafeas.v1.Version affected_version = 3;
       */
      public Builder setAffectedVersion(io.grafeas.v1.Version.Builder builderForValue) {
        if (affectedVersionBuilder_ == null) {
          affectedVersion_ = builderForValue.build();
          onChanged();
        } else {
          affectedVersionBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       *
       *
       *

       * Required. The version of the package that is installed on the resource
       * affected by this vulnerability.
       *

       *
       * .grafeas.v1.Version affected_version = 3;
       */
      public Builder mergeAffectedVersion(io.grafeas.v1.Version value) {
        if (affectedVersionBuilder_ == null) {
          if (affectedVersion_ != null) {
            affectedVersion_ =
                io.grafeas.v1.Version.newBuilder(affectedVersion_).mergeFrom(value).buildPartial();
          } else {
            affectedVersion_ = value;
          }
          onChanged();
        } else {
          affectedVersionBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       *
       *
       *

       * Required. The version of the package that is installed on the resource
       * affected by this vulnerability.
       *

       *
       * .grafeas.v1.Version affected_version = 3;
       */
      public Builder clearAffectedVersion() {
        if (affectedVersionBuilder_ == null) {
          affectedVersion_ = null;
          onChanged();
        } else {
          affectedVersion_ = null;
          affectedVersionBuilder_ = null;
        }

        return this;
      }
      /**
       *
       *
       *

       * Required. The version of the package that is installed on the resource
       * affected by this vulnerability.
       *

       *
       * .grafeas.v1.Version affected_version = 3;
       */
      public io.grafeas.v1.Version.Builder getAffectedVersionBuilder() {

        onChanged();
        return getAffectedVersionFieldBuilder().getBuilder();
      }
      /**
       *
       *
       *

       * Required. The version of the package that is installed on the resource
       * affected by this vulnerability.
       *

       *
       * .grafeas.v1.Version affected_version = 3;
       */
      public io.grafeas.v1.VersionOrBuilder getAffectedVersionOrBuilder() {
        if (affectedVersionBuilder_ != null) {
          return affectedVersionBuilder_.getMessageOrBuilder();
        } else {
          return affectedVersion_ == null
              ? io.grafeas.v1.Version.getDefaultInstance()
              : affectedVersion_;
        }
      }
      /**
       *
       *
       *

       * Required. The version of the package that is installed on the resource
       * affected by this vulnerability.
       *

       *
       * .grafeas.v1.Version affected_version = 3;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              io.grafeas.v1.Version, io.grafeas.v1.Version.Builder, io.grafeas.v1.VersionOrBuilder>
          getAffectedVersionFieldBuilder() {
        if (affectedVersionBuilder_ == null) {
          affectedVersionBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  io.grafeas.v1.Version,
                  io.grafeas.v1.Version.Builder,
                  io.grafeas.v1.VersionOrBuilder>(
                  getAffectedVersion(), getParentForChildren(), isClean());
          affectedVersion_ = null;
        }
        return affectedVersionBuilder_;
      }

      private java.lang.Object fixedCpeUri_ = "";
      /**
       *
       *
       *

       * The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability
       * was fixed in. It is possible for this to be different from the
       * affected_cpe_uri.
       *

       *
       * string fixed_cpe_uri = 4;
       *
       * @return The fixedCpeUri.
       */
      public java.lang.String getFixedCpeUri() {
        java.lang.Object ref = fixedCpeUri_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          fixedCpeUri_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       *

       * The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability
       * was fixed in. It is possible for this to be different from the
       * affected_cpe_uri.
       *

       *
       * string fixed_cpe_uri = 4;
       *
       * @return The bytes for fixedCpeUri.
       */
      public com.google.protobuf.ByteString getFixedCpeUriBytes() {
        java.lang.Object ref = fixedCpeUri_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          fixedCpeUri_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       *

       * The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability
       * was fixed in. It is possible for this to be different from the
       * affected_cpe_uri.
       *

       *
       * string fixed_cpe_uri = 4;
       *
       * @param value The fixedCpeUri to set.
       * @return This builder for chaining.
       */
      public Builder setFixedCpeUri(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }

        fixedCpeUri_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       *

       * The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability
       * was fixed in. It is possible for this to be different from the
       * affected_cpe_uri.
       *

       *
       * string fixed_cpe_uri = 4;
       *
       * @return This builder for chaining.
       */
      public Builder clearFixedCpeUri() {

        fixedCpeUri_ = getDefaultInstance().getFixedCpeUri();
        onChanged();
        return this;
      }
      /**
       *
       *
       *

       * The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability
       * was fixed in. It is possible for this to be different from the
       * affected_cpe_uri.
       *

       *
       * string fixed_cpe_uri = 4;
       *
       * @param value The bytes for fixedCpeUri to set.
       * @return This builder for chaining.
       */
      public Builder setFixedCpeUriBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);

        fixedCpeUri_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object fixedPackage_ = "";
      /**
       *
       *
       *

       * The package this vulnerability was fixed in. It is possible for this to
       * be different from the affected_package.
       *

       *
       * string fixed_package = 5;
       *
       * @return The fixedPackage.
       */
      public java.lang.String getFixedPackage() {
        java.lang.Object ref = fixedPackage_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          fixedPackage_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       *

       * The package this vulnerability was fixed in. It is possible for this to
       * be different from the affected_package.
       *

       *
       * string fixed_package = 5;
       *
       * @return The bytes for fixedPackage.
       */
      public com.google.protobuf.ByteString getFixedPackageBytes() {
        java.lang.Object ref = fixedPackage_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          fixedPackage_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       *

       * The package this vulnerability was fixed in. It is possible for this to
       * be different from the affected_package.
       *

       *
       * string fixed_package = 5;
       *
       * @param value The fixedPackage to set.
       * @return This builder for chaining.
       */
      public Builder setFixedPackage(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }

        fixedPackage_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       *

       * The package this vulnerability was fixed in. It is possible for this to
       * be different from the affected_package.
       *

       *
       * string fixed_package = 5;
       *
       * @return This builder for chaining.
       */
      public Builder clearFixedPackage() {

        fixedPackage_ = getDefaultInstance().getFixedPackage();
        onChanged();
        return this;
      }
      /**
       *
       *
       *

       * The package this vulnerability was fixed in. It is possible for this to
       * be different from the affected_package.
       *

       *
       * string fixed_package = 5;
       *
       * @param value The bytes for fixedPackage to set.
       * @return This builder for chaining.
       */
      public Builder setFixedPackageBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);

        fixedPackage_ = value;
        onChanged();
        return this;
      }

      private io.grafeas.v1.Version fixedVersion_;
      private com.google.protobuf.SingleFieldBuilderV3<
              io.grafeas.v1.Version, io.grafeas.v1.Version.Builder, io.grafeas.v1.VersionOrBuilder>
          fixedVersionBuilder_;
      /**
       *
       *
       *

       * Required. The version of the package this vulnerability was fixed in.
       * Setting this to VersionKind.MAXIMUM means no fix is yet available.
       *

       *
       * .grafeas.v1.Version fixed_version = 6;
       *
       * @return Whether the fixedVersion field is set.
       */
      public boolean hasFixedVersion() {
        return fixedVersionBuilder_ != null || fixedVersion_ != null;
      }
      /**
       *
       *
       *

       * Required. The version of the package this vulnerability was fixed in.
       * Setting this to VersionKind.MAXIMUM means no fix is yet available.
       *

       *
       * .grafeas.v1.Version fixed_version = 6;
       *
       * @return The fixedVersion.
       */
      public io.grafeas.v1.Version getFixedVersion() {
        if (fixedVersionBuilder_ == null) {
          return fixedVersion_ == null ? io.grafeas.v1.Version.getDefaultInstance() : fixedVersion_;
        } else {
          return fixedVersionBuilder_.getMessage();
        }
      }
      /**
       *
       *
       *

       * Required. The version of the package this vulnerability was fixed in.
       * Setting this to VersionKind.MAXIMUM means no fix is yet available.
       *

       *
       * .grafeas.v1.Version fixed_version = 6;
       */
      public Builder setFixedVersion(io.grafeas.v1.Version value) {
        if (fixedVersionBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          fixedVersion_ = value;
          onChanged();
        } else {
          fixedVersionBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       *
       *
       *

       * Required. The version of the package this vulnerability was fixed in.
       * Setting this to VersionKind.MAXIMUM means no fix is yet available.
       *

       *
       * .grafeas.v1.Version fixed_version = 6;
       */
      public Builder setFixedVersion(io.grafeas.v1.Version.Builder builderForValue) {
        if (fixedVersionBuilder_ == null) {
          fixedVersion_ = builderForValue.build();
          onChanged();
        } else {
          fixedVersionBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       *
       *
       *

       * Required. The version of the package this vulnerability was fixed in.
       * Setting this to VersionKind.MAXIMUM means no fix is yet available.
       *

       *
       * .grafeas.v1.Version fixed_version = 6;
       */
      public Builder mergeFixedVersion(io.grafeas.v1.Version value) {
        if (fixedVersionBuilder_ == null) {
          if (fixedVersion_ != null) {
            fixedVersion_ =
                io.grafeas.v1.Version.newBuilder(fixedVersion_).mergeFrom(value).buildPartial();
          } else {
            fixedVersion_ = value;
          }
          onChanged();
        } else {
          fixedVersionBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       *
       *
       *

       * Required. The version of the package this vulnerability was fixed in.
       * Setting this to VersionKind.MAXIMUM means no fix is yet available.
       *

       *
       * .grafeas.v1.Version fixed_version = 6;
       */
      public Builder clearFixedVersion() {
        if (fixedVersionBuilder_ == null) {
          fixedVersion_ = null;
          onChanged();
        } else {
          fixedVersion_ = null;
          fixedVersionBuilder_ = null;
        }

        return this;
      }
      /**
       *
       *
       *

       * Required. The version of the package this vulnerability was fixed in.
       * Setting this to VersionKind.MAXIMUM means no fix is yet available.
       *

       *
       * .grafeas.v1.Version fixed_version = 6;
       */
      public io.grafeas.v1.Version.Builder getFixedVersionBuilder() {

        onChanged();
        return getFixedVersionFieldBuilder().getBuilder();
      }
      /**
       *
       *
       *

       * Required. The version of the package this vulnerability was fixed in.
       * Setting this to VersionKind.MAXIMUM means no fix is yet available.
       *

       *
       * .grafeas.v1.Version fixed_version = 6;
       */
      public io.grafeas.v1.VersionOrBuilder getFixedVersionOrBuilder() {
        if (fixedVersionBuilder_ != null) {
          return fixedVersionBuilder_.getMessageOrBuilder();
        } else {
          return fixedVersion_ == null ? io.grafeas.v1.Version.getDefaultInstance() : fixedVersion_;
        }
      }
      /**
       *
       *
       *

       * Required. The version of the package this vulnerability was fixed in.
       * Setting this to VersionKind.MAXIMUM means no fix is yet available.
       *

       *
       * .grafeas.v1.Version fixed_version = 6;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              io.grafeas.v1.Version, io.grafeas.v1.Version.Builder, io.grafeas.v1.VersionOrBuilder>
          getFixedVersionFieldBuilder() {
        if (fixedVersionBuilder_ == null) {
          fixedVersionBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  io.grafeas.v1.Version,
                  io.grafeas.v1.Version.Builder,
                  io.grafeas.v1.VersionOrBuilder>(
                  getFixedVersion(), getParentForChildren(), isClean());
          fixedVersion_ = null;
        }
        return fixedVersionBuilder_;
      }

      private boolean fixAvailable_;
      /**
       *
       *
       *

       * Output only. Whether a fix is available for this package.
       *

       *
       * bool fix_available = 7;
       *
       * @return The fixAvailable.
       */
      @java.lang.Override
      public boolean getFixAvailable() {
        return fixAvailable_;
      }
      /**
       *
       *
       *

       * Output only. Whether a fix is available for this package.
       *

       *
       * bool fix_available = 7;
       *
       * @param value The fixAvailable to set.
       * @return This builder for chaining.
       */
      public Builder setFixAvailable(boolean value) {

        fixAvailable_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       *

       * Output only. Whether a fix is available for this package.
       *

       *
       * bool fix_available = 7;
       *
       * @return This builder for chaining.
       */
      public Builder clearFixAvailable() {

        fixAvailable_ = false;
        onChanged();
        return this;
      }

      private java.lang.Object packageType_ = "";
      /**
       *
       *
       *

       * The type of package (e.g. OS, MAVEN, GO).
       *

       *
       * string package_type = 8;
       *
       * @return The packageType.
       */
      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;
        }
      }
      /**
       *
       *
       *

       * The type of package (e.g. OS, MAVEN, GO).
       *

       *
       * string package_type = 8;
       *
       * @return The bytes for packageType.
       */
      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;
        }
      }
      /**
       *
       *
       *

       * The type of package (e.g. OS, MAVEN, GO).
       *

       *
       * string package_type = 8;
       *
       * @param value The packageType to set.
       * @return This builder for chaining.
       */
      public Builder setPackageType(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }

        packageType_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       *

       * The type of package (e.g. OS, MAVEN, GO).
       *

       *
       * string package_type = 8;
       *
       * @return This builder for chaining.
       */
      public Builder clearPackageType() {

        packageType_ = getDefaultInstance().getPackageType();
        onChanged();
        return this;
      }
      /**
       *
       *
       *

       * The type of package (e.g. OS, MAVEN, GO).
       *

       *
       * string package_type = 8;
       *
       * @param value The bytes for packageType to set.
       * @return This builder for chaining.
       */
      public Builder setPackageTypeBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);

        packageType_ = value;
        onChanged();
        return this;
      }

      private int effectiveSeverity_ = 0;
      /**
       *
       *
       *

       * The distro or language system assigned severity for this vulnerability
       * when that is available and note provider assigned severity when it is not
       * available.
       *

       *
       *
       * .grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
       *
       *
       * @return The enum numeric value on the wire for effectiveSeverity.
       */
      @java.lang.Override
      public int getEffectiveSeverityValue() {
        return effectiveSeverity_;
      }
      /**
       *
       *
       *

       * The distro or language system assigned severity for this vulnerability
       * when that is available and note provider assigned severity when it is not
       * available.
       *

       *
       *
       * .grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
       *
       *
       * @param value The enum numeric value on the wire for effectiveSeverity to set.
       * @return This builder for chaining.
       */
      public Builder setEffectiveSeverityValue(int value) {

        effectiveSeverity_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       *

       * The distro or language system assigned severity for this vulnerability
       * when that is available and note provider assigned severity when it is not
       * available.
       *

       *
       *
       * .grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
       *
       *
       * @return The effectiveSeverity.
       */
      @java.lang.Override
      public io.grafeas.v1.Severity getEffectiveSeverity() {
        @SuppressWarnings("deprecation")
        io.grafeas.v1.Severity result = io.grafeas.v1.Severity.valueOf(effectiveSeverity_);
        return result == null ? io.grafeas.v1.Severity.UNRECOGNIZED : result;
      }
      /**
       *
       *
       *

       * The distro or language system assigned severity for this vulnerability
       * when that is available and note provider assigned severity when it is not
       * available.
       *

       *
       *
       * .grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
       *
       *
       * @param value The effectiveSeverity to set.
       * @return This builder for chaining.
       */
      public Builder setEffectiveSeverity(io.grafeas.v1.Severity value) {
        if (value == null) {
          throw new NullPointerException();
        }

        effectiveSeverity_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       *
       *
       *

       * The distro or language system assigned severity for this vulnerability
       * when that is available and note provider assigned severity when it is not
       * available.
       *

       *
       *
       * .grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
       *
       *
       * @return This builder for chaining.
       */
      public Builder clearEffectiveSeverity() {

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

      private java.util.List<io.grafeas.v1.FileLocation> fileLocation_ =
          java.util.Collections.emptyList();

      private void ensureFileLocationIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          fileLocation_ = new java.util.ArrayList<io.grafeas.v1.FileLocation>(fileLocation_);
          bitField0_ |= 0x00000001;
        }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
              io.grafeas.v1.FileLocation,
              io.grafeas.v1.FileLocation.Builder,
              io.grafeas.v1.FileLocationOrBuilder>
          fileLocationBuilder_;

      /**
       *
       *
       *

       * The location at which this package was found.
       *

       *
       * repeated .grafeas.v1.FileLocation file_location = 10;
       */
      public java.util.List<io.grafeas.v1.FileLocation> getFileLocationList() {
        if (fileLocationBuilder_ == null) {
          return java.util.Collections.unmodifiableList(fileLocation_);
        } else {
          return fileLocationBuilder_.getMessageList();
        }
      }
      /**
       *
       *
       *

       * The location at which this package was found.
       *

       *
       * repeated .grafeas.v1.FileLocation file_location = 10;
       */
      public int getFileLocationCount() {
        if (fileLocationBuilder_ == null) {
          return fileLocation_.size();
        } else {
          return fileLocationBuilder_.getCount();
        }
      }
      /**
       *
       *
       *

       * The location at which this package was found.
       *

       *
       * repeated .grafeas.v1.FileLocation file_location = 10;
       */
      public io.grafeas.v1.FileLocation getFileLocation(int index) {
        if (fileLocationBuilder_ == null) {
          return fileLocation_.get(index);
        } else {
          return fileLocationBuilder_.getMessage(index);
        }
      }
      /**
       *
       *
       *

       * The location at which this package was found.
       *

       *
       * repeated .grafeas.v1.FileLocation file_location = 10;
       */
      public Builder setFileLocation(int index, io.grafeas.v1.FileLocation value) {
        if (fileLocationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFileLocationIsMutable();
          fileLocation_.set(index, value);
          onChanged();
        } else {
          fileLocationBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       *
       *
       *

       * The location at which this package was found.
       *

       *
       * repeated .grafeas.v1.FileLocation file_location = 10;
       */
      public Builder setFileLocation(
          int index, io.grafeas.v1.FileLocation.Builder builderForValue) {
        if (fileLocationBuilder_ == null) {
          ensureFileLocationIsMutable();
          fileLocation_.set(index, builderForValue.build());
          onChanged();
        } else {
          fileLocationBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       *
       *
       *

       * The location at which this package was found.
       *

       *
       * repeated .grafeas.v1.FileLocation file_location = 10;
       */
      public Builder addFileLocation(io.grafeas.v1.FileLocation value) {
        if (fileLocationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFileLocationIsMutable();
          fileLocation_.add(value);
          onChanged();
        } else {
          fileLocationBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       *
       *
       *

       * The location at which this package was found.
       *

       *
       * repeated .grafeas.v1.FileLocation file_location = 10;
       */
      public Builder addFileLocation(int index, io.grafeas.v1.FileLocation value) {
        if (fileLocationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFileLocationIsMutable();
          fileLocation_.add(index, value);
          onChanged();
        } else {
          fileLocationBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       *
       *
       *

       * The location at which this package was found.
       *

       *
       * repeated .grafeas.v1.FileLocation file_location = 10;
       */
      public Builder addFileLocation(io.grafeas.v1.FileLocation.Builder builderForValue) {
        if (fileLocationBuilder_ == null) {
          ensureFileLocationIsMutable();
          fileLocation_.add(builderForValue.build());
          onChanged();
        } else {
          fileLocationBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       *
       *
       *

       * The location at which this package was found.
       *

       *
       * repeated .grafeas.v1.FileLocation file_location = 10;
       */
      public Builder addFileLocation(
          int index, io.grafeas.v1.FileLocation.Builder builderForValue) {
        if (fileLocationBuilder_ == null) {
          ensureFileLocationIsMutable();
          fileLocation_.add(index, builderForValue.build());
          onChanged();
        } else {
          fileLocationBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       *
       *
       *

       * The location at which this package was found.
       *

       *
       * repeated .grafeas.v1.FileLocation file_location = 10;
       */
      public Builder addAllFileLocation(
          java.lang.Iterable<? extends io.grafeas.v1.FileLocation> values) {
        if (fileLocationBuilder_ == null) {
          ensureFileLocationIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileLocation_);
          onChanged();
        } else {
          fileLocationBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       *
       *
       *

       * The location at which this package was found.
       *

       *
       * repeated .grafeas.v1.FileLocation file_location = 10;
       */
      public Builder clearFileLocation() {
        if (fileLocationBuilder_ == null) {
          fileLocation_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          fileLocationBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       *

       * The location at which this package was found.
       *

       *
       * repeated .grafeas.v1.FileLocation file_location = 10;
       */
      public Builder removeFileLocation(int index) {
        if (fileLocationBuilder_ == null) {
          ensureFileLocationIsMutable();
          fileLocation_.remove(index);
          onChanged();
        } else {
          fileLocationBuilder_.remove(index);
        }
        return this;
      }
      /**
       *
       *
       *

       * The location at which this package was found.
       *

       *
       * repeated .grafeas.v1.FileLocation file_location = 10;
       */
      public io.grafeas.v1.FileLocation.Builder getFileLocationBuilder(int index) {
        return getFileLocationFieldBuilder().getBuilder(index);
      }
      /**
       *
       *
       *

       * The location at which this package was found.
       *

       *
       * repeated .grafeas.v1.FileLocation file_location = 10;
       */
      public io.grafeas.v1.FileLocationOrBuilder getFileLocationOrBuilder(int index) {
        if (fileLocationBuilder_ == null) {
          return fileLocation_.get(index);
        } else {
          return fileLocationBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       *
       *
       *

       * The location at which this package was found.
       *

       *
       * repeated .grafeas.v1.FileLocation file_location = 10;
       */
      public java.util.List<? extends io.grafeas.v1.FileLocationOrBuilder>
          getFileLocationOrBuilderList() {
        if (fileLocationBuilder_ != null) {
          return fileLocationBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(fileLocation_);
        }
      }
      /**
       *
       *
       *

       * The location at which this package was found.
       *

       *
       * repeated .grafeas.v1.FileLocation file_location = 10;
       */
      public io.grafeas.v1.FileLocation.Builder addFileLocationBuilder() {
        return getFileLocationFieldBuilder()
            .addBuilder(io.grafeas.v1.FileLocation.getDefaultInstance());
      }
      /**
       *
       *
       *

       * The location at which this package was found.
       *

       *
       * repeated .grafeas.v1.FileLocation file_location = 10;
       */
      public io.grafeas.v1.FileLocation.Builder addFileLocationBuilder(int index) {
        return getFileLocationFieldBuilder()
            .addBuilder(index, io.grafeas.v1.FileLocation.getDefaultInstance());
      }
      /**
       *
       *
       *

       * The location at which this package was found.
       *

       *
       * repeated .grafeas.v1.FileLocation file_location = 10;
       */
      public java.util.List<io.grafeas.v1.FileLocation.Builder> getFileLocationBuilderList() {
        return getFileLocationFieldBuilder().getBuilderList();
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
              io.grafeas.v1.FileLocation,
              io.grafeas.v1.FileLocation.Builder,
              io.grafeas.v1.FileLocationOrBuilder>
          getFileLocationFieldBuilder() {
        if (fileLocationBuilder_ == null) {
          fileLocationBuilder_ =
              new com.google.protobuf.RepeatedFieldBuilderV3<
                  io.grafeas.v1.FileLocation,
                  io.grafeas.v1.FileLocation.Builder,
                  io.grafeas.v1.FileLocationOrBuilder>(
                  fileLocation_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          fileLocation_ = null;
        }
        return fileLocationBuilder_;
      }

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

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

      // @@protoc_insertion_point(builder_scope:grafeas.v1.VulnerabilityOccurrence.PackageIssue)
    }

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

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

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

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

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

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

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

  public static final int TYPE_FIELD_NUMBER = 1;
  private volatile java.lang.Object type_;
  /**
   *
   *
   *

   * The type of package; whether native or non native (e.g., ruby gems, node.js
   * packages, etc.).
   *

   *
   * string type = 1;
   *
   * @return The type.
   */
  @java.lang.Override
  public java.lang.String getType() {
    java.lang.Object ref = type_;
    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();
      type_ = s;
      return s;
    }
  }
  /**
   *
   *
   *

   * The type of package; whether native or non native (e.g., ruby gems, node.js
   * packages, etc.).
   *

   *
   * string type = 1;
   *
   * @return The bytes for type.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getTypeBytes() {
    java.lang.Object ref = type_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      type_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SEVERITY_FIELD_NUMBER = 2;
  private int severity_;
  /**
   *
   *
   *

   * Output only. The note provider assigned severity of this vulnerability.
   *

   *
   * .grafeas.v1.Severity severity = 2;
   *
   * @return The enum numeric value on the wire for severity.
   */
  @java.lang.Override
  public int getSeverityValue() {
    return severity_;
  }
  /**
   *
   *
   *

   * Output only. The note provider assigned severity of this vulnerability.
   *

   *
   * .grafeas.v1.Severity severity = 2;
   *
   * @return The severity.
   */
  @java.lang.Override
  public io.grafeas.v1.Severity getSeverity() {
    @SuppressWarnings("deprecation")
    io.grafeas.v1.Severity result = io.grafeas.v1.Severity.valueOf(severity_);
    return result == null ? io.grafeas.v1.Severity.UNRECOGNIZED : result;
  }

  public static final int CVSS_SCORE_FIELD_NUMBER = 3;
  private float cvssScore_;
  /**
   *
   *
   *

   * Output only. The CVSS score of this vulnerability. CVSS score is on a
   * scale of 0 - 10 where 0 indicates low severity and 10 indicates high
   * severity.
   *

   *
   * float cvss_score = 3;
   *
   * @return The cvssScore.
   */
  @java.lang.Override
  public float getCvssScore() {
    return cvssScore_;
  }

  public static final int CVSSV3_FIELD_NUMBER = 10;
  private io.grafeas.v1.CVSS cvssv3_;
  /**
   *
   *
   *

   * The cvss v3 score for the vulnerability.
   *

   *
   * .grafeas.v1.CVSS cvssv3 = 10;
   *
   * @return Whether the cvssv3 field is set.
   */
  @java.lang.Override
  public boolean hasCvssv3() {
    return cvssv3_ != null;
  }
  /**
   *
   *
   *

   * The cvss v3 score for the vulnerability.
   *

   *
   * .grafeas.v1.CVSS cvssv3 = 10;
   *
   * @return The cvssv3.
   */
  @java.lang.Override
  public io.grafeas.v1.CVSS getCvssv3() {
    return cvssv3_ == null ? io.grafeas.v1.CVSS.getDefaultInstance() : cvssv3_;
  }
  /**
   *
   *
   *

   * The cvss v3 score for the vulnerability.
   *

   *
   * .grafeas.v1.CVSS cvssv3 = 10;
   */
  @java.lang.Override
  public io.grafeas.v1.CVSSOrBuilder getCvssv3OrBuilder() {
    return getCvssv3();
  }

  public static final int PACKAGE_ISSUE_FIELD_NUMBER = 4;
  private java.util.List<io.grafeas.v1.VulnerabilityOccurrence.PackageIssue> packageIssue_;
  /**
   *
   *
   *

   * Required. The set of affected locations and their fixes (if available)
   * within the associated resource.
   *

   *
   * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
   */
  @java.lang.Override
  public java.util.List<io.grafeas.v1.VulnerabilityOccurrence.PackageIssue> getPackageIssueList() {
    return packageIssue_;
  }
  /**
   *
   *
   *

   * Required. The set of affected locations and their fixes (if available)
   * within the associated resource.
   *

   *
   * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
   */
  @java.lang.Override
  public java.util.List<? extends io.grafeas.v1.VulnerabilityOccurrence.PackageIssueOrBuilder>
      getPackageIssueOrBuilderList() {
    return packageIssue_;
  }
  /**
   *
   *
   *

   * Required. The set of affected locations and their fixes (if available)
   * within the associated resource.
   *

   *
   * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
   */
  @java.lang.Override
  public int getPackageIssueCount() {
    return packageIssue_.size();
  }
  /**
   *
   *
   *

   * Required. The set of affected locations and their fixes (if available)
   * within the associated resource.
   *

   *
   * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
   */
  @java.lang.Override
  public io.grafeas.v1.VulnerabilityOccurrence.PackageIssue getPackageIssue(int index) {
    return packageIssue_.get(index);
  }
  /**
   *
   *
   *

   * Required. The set of affected locations and their fixes (if available)
   * within the associated resource.
   *

   *
   * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
   */
  @java.lang.Override
  public io.grafeas.v1.VulnerabilityOccurrence.PackageIssueOrBuilder getPackageIssueOrBuilder(
      int index) {
    return packageIssue_.get(index);
  }

  public static final int SHORT_DESCRIPTION_FIELD_NUMBER = 5;
  private volatile java.lang.Object shortDescription_;
  /**
   *
   *
   *

   * Output only. A one sentence description of this vulnerability.
   *

   *
   * string short_description = 5;
   *
   * @return The shortDescription.
   */
  @java.lang.Override
  public java.lang.String getShortDescription() {
    java.lang.Object ref = shortDescription_;
    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();
      shortDescription_ = s;
      return s;
    }
  }
  /**
   *
   *
   *

   * Output only. A one sentence description of this vulnerability.
   *

   *
   * string short_description = 5;
   *
   * @return The bytes for shortDescription.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getShortDescriptionBytes() {
    java.lang.Object ref = shortDescription_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      shortDescription_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int LONG_DESCRIPTION_FIELD_NUMBER = 6;
  private volatile java.lang.Object longDescription_;
  /**
   *
   *
   *

   * Output only. A detailed description of this vulnerability.
   *

   *
   * string long_description = 6;
   *
   * @return The longDescription.
   */
  @java.lang.Override
  public java.lang.String getLongDescription() {
    java.lang.Object ref = longDescription_;
    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();
      longDescription_ = s;
      return s;
    }
  }
  /**
   *
   *
   *

   * Output only. A detailed description of this vulnerability.
   *

   *
   * string long_description = 6;
   *
   * @return The bytes for longDescription.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getLongDescriptionBytes() {
    java.lang.Object ref = longDescription_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      longDescription_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int RELATED_URLS_FIELD_NUMBER = 7;
  private java.util.List<io.grafeas.v1.RelatedUrl> relatedUrls_;
  /**
   *
   *
   *

   * Output only. URLs related to this vulnerability.
   *

   *
   * repeated .grafeas.v1.RelatedUrl related_urls = 7;
   */
  @java.lang.Override
  public java.util.List<io.grafeas.v1.RelatedUrl> getRelatedUrlsList() {
    return relatedUrls_;
  }
  /**
   *
   *
   *

   * Output only. URLs related to this vulnerability.
   *

   *
   * repeated .grafeas.v1.RelatedUrl related_urls = 7;
   */
  @java.lang.Override
  public java.util.List<? extends io.grafeas.v1.RelatedUrlOrBuilder> getRelatedUrlsOrBuilderList() {
    return relatedUrls_;
  }
  /**
   *
   *
   *

   * Output only. URLs related to this vulnerability.
   *

   *
   * repeated .grafeas.v1.RelatedUrl related_urls = 7;
   */
  @java.lang.Override
  public int getRelatedUrlsCount() {
    return relatedUrls_.size();
  }
  /**
   *
   *
   *

   * Output only. URLs related to this vulnerability.
   *

   *
   * repeated .grafeas.v1.RelatedUrl related_urls = 7;
   */
  @java.lang.Override
  public io.grafeas.v1.RelatedUrl getRelatedUrls(int index) {
    return relatedUrls_.get(index);
  }
  /**
   *
   *
   *

   * Output only. URLs related to this vulnerability.
   *

   *
   * repeated .grafeas.v1.RelatedUrl related_urls = 7;
   */
  @java.lang.Override
  public io.grafeas.v1.RelatedUrlOrBuilder getRelatedUrlsOrBuilder(int index) {
    return relatedUrls_.get(index);
  }

  public static final int EFFECTIVE_SEVERITY_FIELD_NUMBER = 8;
  private int effectiveSeverity_;
  /**
   *
   *
   *

   * The distro assigned severity for this vulnerability when it is available,
   * otherwise this is the note provider assigned severity.
   * When there are multiple PackageIssues for this vulnerability, they can have
   * different effective severities because some might be provided by the distro
   * while others are provided by the language ecosystem for a language pack.
   * For this reason, it is advised to use the effective severity on the
   * PackageIssue level. In the case where multiple PackageIssues have differing
   * effective severities, this field should be the highest severity for any of
   * the PackageIssues.
   *

   *
   * .grafeas.v1.Severity effective_severity = 8;
   *
   * @return The enum numeric value on the wire for effectiveSeverity.
   */
  @java.lang.Override
  public int getEffectiveSeverityValue() {
    return effectiveSeverity_;
  }
  /**
   *
   *
   *

   * The distro assigned severity for this vulnerability when it is available,
   * otherwise this is the note provider assigned severity.
   * When there are multiple PackageIssues for this vulnerability, they can have
   * different effective severities because some might be provided by the distro
   * while others are provided by the language ecosystem for a language pack.
   * For this reason, it is advised to use the effective severity on the
   * PackageIssue level. In the case where multiple PackageIssues have differing
   * effective severities, this field should be the highest severity for any of
   * the PackageIssues.
   *

   *
   * .grafeas.v1.Severity effective_severity = 8;
   *
   * @return The effectiveSeverity.
   */
  @java.lang.Override
  public io.grafeas.v1.Severity getEffectiveSeverity() {
    @SuppressWarnings("deprecation")
    io.grafeas.v1.Severity result = io.grafeas.v1.Severity.valueOf(effectiveSeverity_);
    return result == null ? io.grafeas.v1.Severity.UNRECOGNIZED : result;
  }

  public static final int FIX_AVAILABLE_FIELD_NUMBER = 9;
  private boolean fixAvailable_;
  /**
   *
   *
   *

   * Output only. Whether at least one of the affected packages has a fix
   * available.
   *

   *
   * bool fix_available = 9;
   *
   * @return The fixAvailable.
   */
  @java.lang.Override
  public boolean getFixAvailable() {
    return fixAvailable_;
  }

  public static final int CVSS_VERSION_FIELD_NUMBER = 11;
  private int cvssVersion_;
  /**
   *
   *
   *

   * Output only. CVSS version used to populate cvss_score and severity.
   *

   *
   * .grafeas.v1.CVSSVersion cvss_version = 11;
   *
   * @return The enum numeric value on the wire for cvssVersion.
   */
  @java.lang.Override
  public int getCvssVersionValue() {
    return cvssVersion_;
  }
  /**
   *
   *
   *

   * Output only. CVSS version used to populate cvss_score and severity.
   *

   *
   * .grafeas.v1.CVSSVersion cvss_version = 11;
   *
   * @return The cvssVersion.
   */
  @java.lang.Override
  public io.grafeas.v1.CVSSVersion getCvssVersion() {
    @SuppressWarnings("deprecation")
    io.grafeas.v1.CVSSVersion result = io.grafeas.v1.CVSSVersion.valueOf(cvssVersion_);
    return result == null ? io.grafeas.v1.CVSSVersion.UNRECOGNIZED : result;
  }

  private byte memoizedIsInitialized = -1;

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
    }
    if (severity_ != io.grafeas.v1.Severity.SEVERITY_UNSPECIFIED.getNumber()) {
      output.writeEnum(2, severity_);
    }
    if (java.lang.Float.floatToRawIntBits(cvssScore_) != 0) {
      output.writeFloat(3, cvssScore_);
    }
    for (int i = 0; i < packageIssue_.size(); i++) {
      output.writeMessage(4, packageIssue_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shortDescription_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, shortDescription_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(longDescription_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, longDescription_);
    }
    for (int i = 0; i < relatedUrls_.size(); i++) {
      output.writeMessage(7, relatedUrls_.get(i));
    }
    if (effectiveSeverity_ != io.grafeas.v1.Severity.SEVERITY_UNSPECIFIED.getNumber()) {
      output.writeEnum(8, effectiveSeverity_);
    }
    if (fixAvailable_ != false) {
      output.writeBool(9, fixAvailable_);
    }
    if (cvssv3_ != null) {
      output.writeMessage(10, getCvssv3());
    }
    if (cvssVersion_ != io.grafeas.v1.CVSSVersion.CVSS_VERSION_UNSPECIFIED.getNumber()) {
      output.writeEnum(11, cvssVersion_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
    }
    if (severity_ != io.grafeas.v1.Severity.SEVERITY_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, severity_);
    }
    if (java.lang.Float.floatToRawIntBits(cvssScore_) != 0) {
      size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, cvssScore_);
    }
    for (int i = 0; i < packageIssue_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, packageIssue_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shortDescription_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, shortDescription_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(longDescription_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, longDescription_);
    }
    for (int i = 0; i < relatedUrls_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, relatedUrls_.get(i));
    }
    if (effectiveSeverity_ != io.grafeas.v1.Severity.SEVERITY_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, effectiveSeverity_);
    }
    if (fixAvailable_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, fixAvailable_);
    }
    if (cvssv3_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCvssv3());
    }
    if (cvssVersion_ != io.grafeas.v1.CVSSVersion.CVSS_VERSION_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, cvssVersion_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

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

    if (!getType().equals(other.getType())) return false;
    if (severity_ != other.severity_) return false;
    if (java.lang.Float.floatToIntBits(getCvssScore())
        != java.lang.Float.floatToIntBits(other.getCvssScore())) return false;
    if (hasCvssv3() != other.hasCvssv3()) return false;
    if (hasCvssv3()) {
      if (!getCvssv3().equals(other.getCvssv3())) return false;
    }
    if (!getPackageIssueList().equals(other.getPackageIssueList())) return false;
    if (!getShortDescription().equals(other.getShortDescription())) return false;
    if (!getLongDescription().equals(other.getLongDescription())) return false;
    if (!getRelatedUrlsList().equals(other.getRelatedUrlsList())) return false;
    if (effectiveSeverity_ != other.effectiveSeverity_) return false;
    if (getFixAvailable() != other.getFixAvailable()) return false;
    if (cvssVersion_ != other.cvssVersion_) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getType().hashCode();
    hash = (37 * hash) + SEVERITY_FIELD_NUMBER;
    hash = (53 * hash) + severity_;
    hash = (37 * hash) + CVSS_SCORE_FIELD_NUMBER;
    hash = (53 * hash) + java.lang.Float.floatToIntBits(getCvssScore());
    if (hasCvssv3()) {
      hash = (37 * hash) + CVSSV3_FIELD_NUMBER;
      hash = (53 * hash) + getCvssv3().hashCode();
    }
    if (getPackageIssueCount() > 0) {
      hash = (37 * hash) + PACKAGE_ISSUE_FIELD_NUMBER;
      hash = (53 * hash) + getPackageIssueList().hashCode();
    }
    hash = (37 * hash) + SHORT_DESCRIPTION_FIELD_NUMBER;
    hash = (53 * hash) + getShortDescription().hashCode();
    hash = (37 * hash) + LONG_DESCRIPTION_FIELD_NUMBER;
    hash = (53 * hash) + getLongDescription().hashCode();
    if (getRelatedUrlsCount() > 0) {
      hash = (37 * hash) + RELATED_URLS_FIELD_NUMBER;
      hash = (53 * hash) + getRelatedUrlsList().hashCode();
    }
    hash = (37 * hash) + EFFECTIVE_SEVERITY_FIELD_NUMBER;
    hash = (53 * hash) + effectiveSeverity_;
    hash = (37 * hash) + FIX_AVAILABLE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFixAvailable());
    hash = (37 * hash) + CVSS_VERSION_FIELD_NUMBER;
    hash = (53 * hash) + cvssVersion_;
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  public static Builder newBuilder(io.grafeas.v1.VulnerabilityOccurrence 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;
  }
  /**
   *
   *
   *

   * An occurrence of a severity vulnerability on a resource.
   *

   *
   * Protobuf type {@code grafeas.v1.VulnerabilityOccurrence}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:grafeas.v1.VulnerabilityOccurrence)
      io.grafeas.v1.VulnerabilityOccurrenceOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return io.grafeas.v1.Vulnerability
          .internal_static_grafeas_v1_VulnerabilityOccurrence_descriptor;
    }

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

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

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      type_ = "";

      severity_ = 0;

      cvssScore_ = 0F;

      if (cvssv3Builder_ == null) {
        cvssv3_ = null;
      } else {
        cvssv3_ = null;
        cvssv3Builder_ = null;
      }
      if (packageIssueBuilder_ == null) {
        packageIssue_ = java.util.Collections.emptyList();
      } else {
        packageIssue_ = null;
        packageIssueBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      shortDescription_ = "";

      longDescription_ = "";

      if (relatedUrlsBuilder_ == null) {
        relatedUrls_ = java.util.Collections.emptyList();
      } else {
        relatedUrls_ = null;
        relatedUrlsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      effectiveSeverity_ = 0;

      fixAvailable_ = false;

      cvssVersion_ = 0;

      return this;
    }

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

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

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

    @java.lang.Override
    public io.grafeas.v1.VulnerabilityOccurrence buildPartial() {
      io.grafeas.v1.VulnerabilityOccurrence result =
          new io.grafeas.v1.VulnerabilityOccurrence(this);
      int from_bitField0_ = bitField0_;
      result.type_ = type_;
      result.severity_ = severity_;
      result.cvssScore_ = cvssScore_;
      if (cvssv3Builder_ == null) {
        result.cvssv3_ = cvssv3_;
      } else {
        result.cvssv3_ = cvssv3Builder_.build();
      }
      if (packageIssueBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          packageIssue_ = java.util.Collections.unmodifiableList(packageIssue_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.packageIssue_ = packageIssue_;
      } else {
        result.packageIssue_ = packageIssueBuilder_.build();
      }
      result.shortDescription_ = shortDescription_;
      result.longDescription_ = longDescription_;
      if (relatedUrlsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          relatedUrls_ = java.util.Collections.unmodifiableList(relatedUrls_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.relatedUrls_ = relatedUrls_;
      } else {
        result.relatedUrls_ = relatedUrlsBuilder_.build();
      }
      result.effectiveSeverity_ = effectiveSeverity_;
      result.fixAvailable_ = fixAvailable_;
      result.cvssVersion_ = cvssVersion_;
      onBuilt();
      return result;
    }

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

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

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

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

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

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

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

    public Builder mergeFrom(io.grafeas.v1.VulnerabilityOccurrence other) {
      if (other == io.grafeas.v1.VulnerabilityOccurrence.getDefaultInstance()) return this;
      if (!other.getType().isEmpty()) {
        type_ = other.type_;
        onChanged();
      }
      if (other.severity_ != 0) {
        setSeverityValue(other.getSeverityValue());
      }
      if (other.getCvssScore() != 0F) {
        setCvssScore(other.getCvssScore());
      }
      if (other.hasCvssv3()) {
        mergeCvssv3(other.getCvssv3());
      }
      if (packageIssueBuilder_ == null) {
        if (!other.packageIssue_.isEmpty()) {
          if (packageIssue_.isEmpty()) {
            packageIssue_ = other.packageIssue_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensurePackageIssueIsMutable();
            packageIssue_.addAll(other.packageIssue_);
          }
          onChanged();
        }
      } else {
        if (!other.packageIssue_.isEmpty()) {
          if (packageIssueBuilder_.isEmpty()) {
            packageIssueBuilder_.dispose();
            packageIssueBuilder_ = null;
            packageIssue_ = other.packageIssue_;
            bitField0_ = (bitField0_ & ~0x00000001);
            packageIssueBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getPackageIssueFieldBuilder()
                    : null;
          } else {
            packageIssueBuilder_.addAllMessages(other.packageIssue_);
          }
        }
      }
      if (!other.getShortDescription().isEmpty()) {
        shortDescription_ = other.shortDescription_;
        onChanged();
      }
      if (!other.getLongDescription().isEmpty()) {
        longDescription_ = other.longDescription_;
        onChanged();
      }
      if (relatedUrlsBuilder_ == null) {
        if (!other.relatedUrls_.isEmpty()) {
          if (relatedUrls_.isEmpty()) {
            relatedUrls_ = other.relatedUrls_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureRelatedUrlsIsMutable();
            relatedUrls_.addAll(other.relatedUrls_);
          }
          onChanged();
        }
      } else {
        if (!other.relatedUrls_.isEmpty()) {
          if (relatedUrlsBuilder_.isEmpty()) {
            relatedUrlsBuilder_.dispose();
            relatedUrlsBuilder_ = null;
            relatedUrls_ = other.relatedUrls_;
            bitField0_ = (bitField0_ & ~0x00000002);
            relatedUrlsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getRelatedUrlsFieldBuilder()
                    : null;
          } else {
            relatedUrlsBuilder_.addAllMessages(other.relatedUrls_);
          }
        }
      }
      if (other.effectiveSeverity_ != 0) {
        setEffectiveSeverityValue(other.getEffectiveSeverityValue());
      }
      if (other.getFixAvailable() != false) {
        setFixAvailable(other.getFixAvailable());
      }
      if (other.cvssVersion_ != 0) {
        setCvssVersionValue(other.getCvssVersionValue());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

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

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

                break;
              } // case 10
            case 16:
              {
                severity_ = input.readEnum();

                break;
              } // case 16
            case 29:
              {
                cvssScore_ = input.readFloat();

                break;
              } // case 29
            case 34:
              {
                io.grafeas.v1.VulnerabilityOccurrence.PackageIssue m =
                    input.readMessage(
                        io.grafeas.v1.VulnerabilityOccurrence.PackageIssue.parser(),
                        extensionRegistry);
                if (packageIssueBuilder_ == null) {
                  ensurePackageIssueIsMutable();
                  packageIssue_.add(m);
                } else {
                  packageIssueBuilder_.addMessage(m);
                }
                break;
              } // case 34
            case 42:
              {
                shortDescription_ = input.readStringRequireUtf8();

                break;
              } // case 42
            case 50:
              {
                longDescription_ = input.readStringRequireUtf8();

                break;
              } // case 50
            case 58:
              {
                io.grafeas.v1.RelatedUrl m =
                    input.readMessage(io.grafeas.v1.RelatedUrl.parser(), extensionRegistry);
                if (relatedUrlsBuilder_ == null) {
                  ensureRelatedUrlsIsMutable();
                  relatedUrls_.add(m);
                } else {
                  relatedUrlsBuilder_.addMessage(m);
                }
                break;
              } // case 58
            case 64:
              {
                effectiveSeverity_ = input.readEnum();

                break;
              } // case 64
            case 72:
              {
                fixAvailable_ = input.readBool();

                break;
              } // case 72
            case 82:
              {
                input.readMessage(getCvssv3FieldBuilder().getBuilder(), extensionRegistry);

                break;
              } // case 82
            case 88:
              {
                cvssVersion_ = input.readEnum();

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

    private int bitField0_;

    private java.lang.Object type_ = "";
    /**
     *
     *
     *

     * The type of package; whether native or non native (e.g., ruby gems, node.js
     * packages, etc.).
     *

     *
     * string type = 1;
     *
     * @return The type.
     */
    public java.lang.String getType() {
      java.lang.Object ref = type_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        type_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     *

     * The type of package; whether native or non native (e.g., ruby gems, node.js
     * packages, etc.).
     *

     *
     * string type = 1;
     *
     * @return The bytes for type.
     */
    public com.google.protobuf.ByteString getTypeBytes() {
      java.lang.Object ref = type_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        type_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     *

     * The type of package; whether native or non native (e.g., ruby gems, node.js
     * packages, etc.).
     *

     *
     * string type = 1;
     *
     * @param value The type to set.
     * @return This builder for chaining.
     */
    public Builder setType(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      type_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * The type of package; whether native or non native (e.g., ruby gems, node.js
     * packages, etc.).
     *

     *
     * string type = 1;
     *
     * @return This builder for chaining.
     */
    public Builder clearType() {

      type_ = getDefaultInstance().getType();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * The type of package; whether native or non native (e.g., ruby gems, node.js
     * packages, etc.).
     *

     *
     * string type = 1;
     *
     * @param value The bytes for type to set.
     * @return This builder for chaining.
     */
    public Builder setTypeBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      type_ = value;
      onChanged();
      return this;
    }

    private int severity_ = 0;
    /**
     *
     *
     *

     * Output only. The note provider assigned severity of this vulnerability.
     *

     *
     * .grafeas.v1.Severity severity = 2;
     *
     * @return The enum numeric value on the wire for severity.
     */
    @java.lang.Override
    public int getSeverityValue() {
      return severity_;
    }
    /**
     *
     *
     *

     * Output only. The note provider assigned severity of this vulnerability.
     *

     *
     * .grafeas.v1.Severity severity = 2;
     *
     * @param value The enum numeric value on the wire for severity to set.
     * @return This builder for chaining.
     */
    public Builder setSeverityValue(int value) {

      severity_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. The note provider assigned severity of this vulnerability.
     *

     *
     * .grafeas.v1.Severity severity = 2;
     *
     * @return The severity.
     */
    @java.lang.Override
    public io.grafeas.v1.Severity getSeverity() {
      @SuppressWarnings("deprecation")
      io.grafeas.v1.Severity result = io.grafeas.v1.Severity.valueOf(severity_);
      return result == null ? io.grafeas.v1.Severity.UNRECOGNIZED : result;
    }
    /**
     *
     *
     *

     * Output only. The note provider assigned severity of this vulnerability.
     *

     *
     * .grafeas.v1.Severity severity = 2;
     *
     * @param value The severity to set.
     * @return This builder for chaining.
     */
    public Builder setSeverity(io.grafeas.v1.Severity value) {
      if (value == null) {
        throw new NullPointerException();
      }

      severity_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. The note provider assigned severity of this vulnerability.
     *

     *
     * .grafeas.v1.Severity severity = 2;
     *
     * @return This builder for chaining.
     */
    public Builder clearSeverity() {

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

    private float cvssScore_;
    /**
     *
     *
     *

     * Output only. The CVSS score of this vulnerability. CVSS score is on a
     * scale of 0 - 10 where 0 indicates low severity and 10 indicates high
     * severity.
     *

     *
     * float cvss_score = 3;
     *
     * @return The cvssScore.
     */
    @java.lang.Override
    public float getCvssScore() {
      return cvssScore_;
    }
    /**
     *
     *
     *

     * Output only. The CVSS score of this vulnerability. CVSS score is on a
     * scale of 0 - 10 where 0 indicates low severity and 10 indicates high
     * severity.
     *

     *
     * float cvss_score = 3;
     *
     * @param value The cvssScore to set.
     * @return This builder for chaining.
     */
    public Builder setCvssScore(float value) {

      cvssScore_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. The CVSS score of this vulnerability. CVSS score is on a
     * scale of 0 - 10 where 0 indicates low severity and 10 indicates high
     * severity.
     *

     *
     * float cvss_score = 3;
     *
     * @return This builder for chaining.
     */
    public Builder clearCvssScore() {

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

    private io.grafeas.v1.CVSS cvssv3_;
    private com.google.protobuf.SingleFieldBuilderV3<
            io.grafeas.v1.CVSS, io.grafeas.v1.CVSS.Builder, io.grafeas.v1.CVSSOrBuilder>
        cvssv3Builder_;
    /**
     *
     *
     *

     * The cvss v3 score for the vulnerability.
     *

     *
     * .grafeas.v1.CVSS cvssv3 = 10;
     *
     * @return Whether the cvssv3 field is set.
     */
    public boolean hasCvssv3() {
      return cvssv3Builder_ != null || cvssv3_ != null;
    }
    /**
     *
     *
     *

     * The cvss v3 score for the vulnerability.
     *

     *
     * .grafeas.v1.CVSS cvssv3 = 10;
     *
     * @return The cvssv3.
     */
    public io.grafeas.v1.CVSS getCvssv3() {
      if (cvssv3Builder_ == null) {
        return cvssv3_ == null ? io.grafeas.v1.CVSS.getDefaultInstance() : cvssv3_;
      } else {
        return cvssv3Builder_.getMessage();
      }
    }
    /**
     *
     *
     *

     * The cvss v3 score for the vulnerability.
     *

     *
     * .grafeas.v1.CVSS cvssv3 = 10;
     */
    public Builder setCvssv3(io.grafeas.v1.CVSS value) {
      if (cvssv3Builder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        cvssv3_ = value;
        onChanged();
      } else {
        cvssv3Builder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     *

     * The cvss v3 score for the vulnerability.
     *

     *
     * .grafeas.v1.CVSS cvssv3 = 10;
     */
    public Builder setCvssv3(io.grafeas.v1.CVSS.Builder builderForValue) {
      if (cvssv3Builder_ == null) {
        cvssv3_ = builderForValue.build();
        onChanged();
      } else {
        cvssv3Builder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     *

     * The cvss v3 score for the vulnerability.
     *

     *
     * .grafeas.v1.CVSS cvssv3 = 10;
     */
    public Builder mergeCvssv3(io.grafeas.v1.CVSS value) {
      if (cvssv3Builder_ == null) {
        if (cvssv3_ != null) {
          cvssv3_ = io.grafeas.v1.CVSS.newBuilder(cvssv3_).mergeFrom(value).buildPartial();
        } else {
          cvssv3_ = value;
        }
        onChanged();
      } else {
        cvssv3Builder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     *

     * The cvss v3 score for the vulnerability.
     *

     *
     * .grafeas.v1.CVSS cvssv3 = 10;
     */
    public Builder clearCvssv3() {
      if (cvssv3Builder_ == null) {
        cvssv3_ = null;
        onChanged();
      } else {
        cvssv3_ = null;
        cvssv3Builder_ = null;
      }

      return this;
    }
    /**
     *
     *
     *

     * The cvss v3 score for the vulnerability.
     *

     *
     * .grafeas.v1.CVSS cvssv3 = 10;
     */
    public io.grafeas.v1.CVSS.Builder getCvssv3Builder() {

      onChanged();
      return getCvssv3FieldBuilder().getBuilder();
    }
    /**
     *
     *
     *

     * The cvss v3 score for the vulnerability.
     *

     *
     * .grafeas.v1.CVSS cvssv3 = 10;
     */
    public io.grafeas.v1.CVSSOrBuilder getCvssv3OrBuilder() {
      if (cvssv3Builder_ != null) {
        return cvssv3Builder_.getMessageOrBuilder();
      } else {
        return cvssv3_ == null ? io.grafeas.v1.CVSS.getDefaultInstance() : cvssv3_;
      }
    }
    /**
     *
     *
     *

     * The cvss v3 score for the vulnerability.
     *

     *
     * .grafeas.v1.CVSS cvssv3 = 10;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            io.grafeas.v1.CVSS, io.grafeas.v1.CVSS.Builder, io.grafeas.v1.CVSSOrBuilder>
        getCvssv3FieldBuilder() {
      if (cvssv3Builder_ == null) {
        cvssv3Builder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                io.grafeas.v1.CVSS, io.grafeas.v1.CVSS.Builder, io.grafeas.v1.CVSSOrBuilder>(
                getCvssv3(), getParentForChildren(), isClean());
        cvssv3_ = null;
      }
      return cvssv3Builder_;
    }

    private java.util.List<io.grafeas.v1.VulnerabilityOccurrence.PackageIssue> packageIssue_ =
        java.util.Collections.emptyList();

    private void ensurePackageIssueIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        packageIssue_ =
            new java.util.ArrayList<io.grafeas.v1.VulnerabilityOccurrence.PackageIssue>(
                packageIssue_);
        bitField0_ |= 0x00000001;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            io.grafeas.v1.VulnerabilityOccurrence.PackageIssue,
            io.grafeas.v1.VulnerabilityOccurrence.PackageIssue.Builder,
            io.grafeas.v1.VulnerabilityOccurrence.PackageIssueOrBuilder>
        packageIssueBuilder_;

    /**
     *
     *
     *

     * Required. The set of affected locations and their fixes (if available)
     * within the associated resource.
     *

     *
     * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
     */
    public java.util.List<io.grafeas.v1.VulnerabilityOccurrence.PackageIssue>
        getPackageIssueList() {
      if (packageIssueBuilder_ == null) {
        return java.util.Collections.unmodifiableList(packageIssue_);
      } else {
        return packageIssueBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     *

     * Required. The set of affected locations and their fixes (if available)
     * within the associated resource.
     *

     *
     * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
     */
    public int getPackageIssueCount() {
      if (packageIssueBuilder_ == null) {
        return packageIssue_.size();
      } else {
        return packageIssueBuilder_.getCount();
      }
    }
    /**
     *
     *
     *

     * Required. The set of affected locations and their fixes (if available)
     * within the associated resource.
     *

     *
     * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
     */
    public io.grafeas.v1.VulnerabilityOccurrence.PackageIssue getPackageIssue(int index) {
      if (packageIssueBuilder_ == null) {
        return packageIssue_.get(index);
      } else {
        return packageIssueBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     *

     * Required. The set of affected locations and their fixes (if available)
     * within the associated resource.
     *

     *
     * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
     */
    public Builder setPackageIssue(
        int index, io.grafeas.v1.VulnerabilityOccurrence.PackageIssue value) {
      if (packageIssueBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePackageIssueIsMutable();
        packageIssue_.set(index, value);
        onChanged();
      } else {
        packageIssueBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     *

     * Required. The set of affected locations and their fixes (if available)
     * within the associated resource.
     *

     *
     * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
     */
    public Builder setPackageIssue(
        int index, io.grafeas.v1.VulnerabilityOccurrence.PackageIssue.Builder builderForValue) {
      if (packageIssueBuilder_ == null) {
        ensurePackageIssueIsMutable();
        packageIssue_.set(index, builderForValue.build());
        onChanged();
      } else {
        packageIssueBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     *

     * Required. The set of affected locations and their fixes (if available)
     * within the associated resource.
     *

     *
     * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
     */
    public Builder addPackageIssue(io.grafeas.v1.VulnerabilityOccurrence.PackageIssue value) {
      if (packageIssueBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePackageIssueIsMutable();
        packageIssue_.add(value);
        onChanged();
      } else {
        packageIssueBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     *

     * Required. The set of affected locations and their fixes (if available)
     * within the associated resource.
     *

     *
     * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
     */
    public Builder addPackageIssue(
        int index, io.grafeas.v1.VulnerabilityOccurrence.PackageIssue value) {
      if (packageIssueBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePackageIssueIsMutable();
        packageIssue_.add(index, value);
        onChanged();
      } else {
        packageIssueBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     *

     * Required. The set of affected locations and their fixes (if available)
     * within the associated resource.
     *

     *
     * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
     */
    public Builder addPackageIssue(
        io.grafeas.v1.VulnerabilityOccurrence.PackageIssue.Builder builderForValue) {
      if (packageIssueBuilder_ == null) {
        ensurePackageIssueIsMutable();
        packageIssue_.add(builderForValue.build());
        onChanged();
      } else {
        packageIssueBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     *

     * Required. The set of affected locations and their fixes (if available)
     * within the associated resource.
     *

     *
     * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
     */
    public Builder addPackageIssue(
        int index, io.grafeas.v1.VulnerabilityOccurrence.PackageIssue.Builder builderForValue) {
      if (packageIssueBuilder_ == null) {
        ensurePackageIssueIsMutable();
        packageIssue_.add(index, builderForValue.build());
        onChanged();
      } else {
        packageIssueBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     *

     * Required. The set of affected locations and their fixes (if available)
     * within the associated resource.
     *

     *
     * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
     */
    public Builder addAllPackageIssue(
        java.lang.Iterable<? extends io.grafeas.v1.VulnerabilityOccurrence.PackageIssue> values) {
      if (packageIssueBuilder_ == null) {
        ensurePackageIssueIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, packageIssue_);
        onChanged();
      } else {
        packageIssueBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     *

     * Required. The set of affected locations and their fixes (if available)
     * within the associated resource.
     *

     *
     * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
     */
    public Builder clearPackageIssue() {
      if (packageIssueBuilder_ == null) {
        packageIssue_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        packageIssueBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     *

     * Required. The set of affected locations and their fixes (if available)
     * within the associated resource.
     *

     *
     * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
     */
    public Builder removePackageIssue(int index) {
      if (packageIssueBuilder_ == null) {
        ensurePackageIssueIsMutable();
        packageIssue_.remove(index);
        onChanged();
      } else {
        packageIssueBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     *

     * Required. The set of affected locations and their fixes (if available)
     * within the associated resource.
     *

     *
     * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
     */
    public io.grafeas.v1.VulnerabilityOccurrence.PackageIssue.Builder getPackageIssueBuilder(
        int index) {
      return getPackageIssueFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     *

     * Required. The set of affected locations and their fixes (if available)
     * within the associated resource.
     *

     *
     * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
     */
    public io.grafeas.v1.VulnerabilityOccurrence.PackageIssueOrBuilder getPackageIssueOrBuilder(
        int index) {
      if (packageIssueBuilder_ == null) {
        return packageIssue_.get(index);
      } else {
        return packageIssueBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     *

     * Required. The set of affected locations and their fixes (if available)
     * within the associated resource.
     *

     *
     * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
     */
    public java.util.List<? extends io.grafeas.v1.VulnerabilityOccurrence.PackageIssueOrBuilder>
        getPackageIssueOrBuilderList() {
      if (packageIssueBuilder_ != null) {
        return packageIssueBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(packageIssue_);
      }
    }
    /**
     *
     *
     *

     * Required. The set of affected locations and their fixes (if available)
     * within the associated resource.
     *

     *
     * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
     */
    public io.grafeas.v1.VulnerabilityOccurrence.PackageIssue.Builder addPackageIssueBuilder() {
      return getPackageIssueFieldBuilder()
          .addBuilder(io.grafeas.v1.VulnerabilityOccurrence.PackageIssue.getDefaultInstance());
    }
    /**
     *
     *
     *

     * Required. The set of affected locations and their fixes (if available)
     * within the associated resource.
     *

     *
     * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
     */
    public io.grafeas.v1.VulnerabilityOccurrence.PackageIssue.Builder addPackageIssueBuilder(
        int index) {
      return getPackageIssueFieldBuilder()
          .addBuilder(
              index, io.grafeas.v1.VulnerabilityOccurrence.PackageIssue.getDefaultInstance());
    }
    /**
     *
     *
     *

     * Required. The set of affected locations and their fixes (if available)
     * within the associated resource.
     *

     *
     * repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
     */
    public java.util.List<io.grafeas.v1.VulnerabilityOccurrence.PackageIssue.Builder>
        getPackageIssueBuilderList() {
      return getPackageIssueFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            io.grafeas.v1.VulnerabilityOccurrence.PackageIssue,
            io.grafeas.v1.VulnerabilityOccurrence.PackageIssue.Builder,
            io.grafeas.v1.VulnerabilityOccurrence.PackageIssueOrBuilder>
        getPackageIssueFieldBuilder() {
      if (packageIssueBuilder_ == null) {
        packageIssueBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                io.grafeas.v1.VulnerabilityOccurrence.PackageIssue,
                io.grafeas.v1.VulnerabilityOccurrence.PackageIssue.Builder,
                io.grafeas.v1.VulnerabilityOccurrence.PackageIssueOrBuilder>(
                packageIssue_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
        packageIssue_ = null;
      }
      return packageIssueBuilder_;
    }

    private java.lang.Object shortDescription_ = "";
    /**
     *
     *
     *

     * Output only. A one sentence description of this vulnerability.
     *

     *
     * string short_description = 5;
     *
     * @return The shortDescription.
     */
    public java.lang.String getShortDescription() {
      java.lang.Object ref = shortDescription_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        shortDescription_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     *

     * Output only. A one sentence description of this vulnerability.
     *

     *
     * string short_description = 5;
     *
     * @return The bytes for shortDescription.
     */
    public com.google.protobuf.ByteString getShortDescriptionBytes() {
      java.lang.Object ref = shortDescription_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        shortDescription_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     *

     * Output only. A one sentence description of this vulnerability.
     *

     *
     * string short_description = 5;
     *
     * @param value The shortDescription to set.
     * @return This builder for chaining.
     */
    public Builder setShortDescription(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      shortDescription_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. A one sentence description of this vulnerability.
     *

     *
     * string short_description = 5;
     *
     * @return This builder for chaining.
     */
    public Builder clearShortDescription() {

      shortDescription_ = getDefaultInstance().getShortDescription();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. A one sentence description of this vulnerability.
     *

     *
     * string short_description = 5;
     *
     * @param value The bytes for shortDescription to set.
     * @return This builder for chaining.
     */
    public Builder setShortDescriptionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      shortDescription_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object longDescription_ = "";
    /**
     *
     *
     *

     * Output only. A detailed description of this vulnerability.
     *

     *
     * string long_description = 6;
     *
     * @return The longDescription.
     */
    public java.lang.String getLongDescription() {
      java.lang.Object ref = longDescription_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        longDescription_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     *

     * Output only. A detailed description of this vulnerability.
     *

     *
     * string long_description = 6;
     *
     * @return The bytes for longDescription.
     */
    public com.google.protobuf.ByteString getLongDescriptionBytes() {
      java.lang.Object ref = longDescription_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        longDescription_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     *

     * Output only. A detailed description of this vulnerability.
     *

     *
     * string long_description = 6;
     *
     * @param value The longDescription to set.
     * @return This builder for chaining.
     */
    public Builder setLongDescription(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      longDescription_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. A detailed description of this vulnerability.
     *

     *
     * string long_description = 6;
     *
     * @return This builder for chaining.
     */
    public Builder clearLongDescription() {

      longDescription_ = getDefaultInstance().getLongDescription();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. A detailed description of this vulnerability.
     *

     *
     * string long_description = 6;
     *
     * @param value The bytes for longDescription to set.
     * @return This builder for chaining.
     */
    public Builder setLongDescriptionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      longDescription_ = value;
      onChanged();
      return this;
    }

    private java.util.List<io.grafeas.v1.RelatedUrl> relatedUrls_ =
        java.util.Collections.emptyList();

    private void ensureRelatedUrlsIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        relatedUrls_ = new java.util.ArrayList<io.grafeas.v1.RelatedUrl>(relatedUrls_);
        bitField0_ |= 0x00000002;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            io.grafeas.v1.RelatedUrl,
            io.grafeas.v1.RelatedUrl.Builder,
            io.grafeas.v1.RelatedUrlOrBuilder>
        relatedUrlsBuilder_;

    /**
     *
     *
     *

     * Output only. URLs related to this vulnerability.
     *

     *
     * repeated .grafeas.v1.RelatedUrl related_urls = 7;
     */
    public java.util.List<io.grafeas.v1.RelatedUrl> getRelatedUrlsList() {
      if (relatedUrlsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(relatedUrls_);
      } else {
        return relatedUrlsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     *

     * Output only. URLs related to this vulnerability.
     *

     *
     * repeated .grafeas.v1.RelatedUrl related_urls = 7;
     */
    public int getRelatedUrlsCount() {
      if (relatedUrlsBuilder_ == null) {
        return relatedUrls_.size();
      } else {
        return relatedUrlsBuilder_.getCount();
      }
    }
    /**
     *
     *
     *

     * Output only. URLs related to this vulnerability.
     *

     *
     * repeated .grafeas.v1.RelatedUrl related_urls = 7;
     */
    public io.grafeas.v1.RelatedUrl getRelatedUrls(int index) {
      if (relatedUrlsBuilder_ == null) {
        return relatedUrls_.get(index);
      } else {
        return relatedUrlsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     *

     * Output only. URLs related to this vulnerability.
     *

     *
     * repeated .grafeas.v1.RelatedUrl related_urls = 7;
     */
    public Builder setRelatedUrls(int index, io.grafeas.v1.RelatedUrl value) {
      if (relatedUrlsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRelatedUrlsIsMutable();
        relatedUrls_.set(index, value);
        onChanged();
      } else {
        relatedUrlsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. URLs related to this vulnerability.
     *

     *
     * repeated .grafeas.v1.RelatedUrl related_urls = 7;
     */
    public Builder setRelatedUrls(int index, io.grafeas.v1.RelatedUrl.Builder builderForValue) {
      if (relatedUrlsBuilder_ == null) {
        ensureRelatedUrlsIsMutable();
        relatedUrls_.set(index, builderForValue.build());
        onChanged();
      } else {
        relatedUrlsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. URLs related to this vulnerability.
     *

     *
     * repeated .grafeas.v1.RelatedUrl related_urls = 7;
     */
    public Builder addRelatedUrls(io.grafeas.v1.RelatedUrl value) {
      if (relatedUrlsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRelatedUrlsIsMutable();
        relatedUrls_.add(value);
        onChanged();
      } else {
        relatedUrlsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. URLs related to this vulnerability.
     *

     *
     * repeated .grafeas.v1.RelatedUrl related_urls = 7;
     */
    public Builder addRelatedUrls(int index, io.grafeas.v1.RelatedUrl value) {
      if (relatedUrlsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRelatedUrlsIsMutable();
        relatedUrls_.add(index, value);
        onChanged();
      } else {
        relatedUrlsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. URLs related to this vulnerability.
     *

     *
     * repeated .grafeas.v1.RelatedUrl related_urls = 7;
     */
    public Builder addRelatedUrls(io.grafeas.v1.RelatedUrl.Builder builderForValue) {
      if (relatedUrlsBuilder_ == null) {
        ensureRelatedUrlsIsMutable();
        relatedUrls_.add(builderForValue.build());
        onChanged();
      } else {
        relatedUrlsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. URLs related to this vulnerability.
     *

     *
     * repeated .grafeas.v1.RelatedUrl related_urls = 7;
     */
    public Builder addRelatedUrls(int index, io.grafeas.v1.RelatedUrl.Builder builderForValue) {
      if (relatedUrlsBuilder_ == null) {
        ensureRelatedUrlsIsMutable();
        relatedUrls_.add(index, builderForValue.build());
        onChanged();
      } else {
        relatedUrlsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. URLs related to this vulnerability.
     *

     *
     * repeated .grafeas.v1.RelatedUrl related_urls = 7;
     */
    public Builder addAllRelatedUrls(
        java.lang.Iterable<? extends io.grafeas.v1.RelatedUrl> values) {
      if (relatedUrlsBuilder_ == null) {
        ensureRelatedUrlsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relatedUrls_);
        onChanged();
      } else {
        relatedUrlsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. URLs related to this vulnerability.
     *

     *
     * repeated .grafeas.v1.RelatedUrl related_urls = 7;
     */
    public Builder clearRelatedUrls() {
      if (relatedUrlsBuilder_ == null) {
        relatedUrls_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        relatedUrlsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. URLs related to this vulnerability.
     *

     *
     * repeated .grafeas.v1.RelatedUrl related_urls = 7;
     */
    public Builder removeRelatedUrls(int index) {
      if (relatedUrlsBuilder_ == null) {
        ensureRelatedUrlsIsMutable();
        relatedUrls_.remove(index);
        onChanged();
      } else {
        relatedUrlsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. URLs related to this vulnerability.
     *

     *
     * repeated .grafeas.v1.RelatedUrl related_urls = 7;
     */
    public io.grafeas.v1.RelatedUrl.Builder getRelatedUrlsBuilder(int index) {
      return getRelatedUrlsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     *

     * Output only. URLs related to this vulnerability.
     *

     *
     * repeated .grafeas.v1.RelatedUrl related_urls = 7;
     */
    public io.grafeas.v1.RelatedUrlOrBuilder getRelatedUrlsOrBuilder(int index) {
      if (relatedUrlsBuilder_ == null) {
        return relatedUrls_.get(index);
      } else {
        return relatedUrlsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     *

     * Output only. URLs related to this vulnerability.
     *

     *
     * repeated .grafeas.v1.RelatedUrl related_urls = 7;
     */
    public java.util.List<? extends io.grafeas.v1.RelatedUrlOrBuilder>
        getRelatedUrlsOrBuilderList() {
      if (relatedUrlsBuilder_ != null) {
        return relatedUrlsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(relatedUrls_);
      }
    }
    /**
     *
     *
     *

     * Output only. URLs related to this vulnerability.
     *

     *
     * repeated .grafeas.v1.RelatedUrl related_urls = 7;
     */
    public io.grafeas.v1.RelatedUrl.Builder addRelatedUrlsBuilder() {
      return getRelatedUrlsFieldBuilder().addBuilder(io.grafeas.v1.RelatedUrl.getDefaultInstance());
    }
    /**
     *
     *
     *

     * Output only. URLs related to this vulnerability.
     *

     *
     * repeated .grafeas.v1.RelatedUrl related_urls = 7;
     */
    public io.grafeas.v1.RelatedUrl.Builder addRelatedUrlsBuilder(int index) {
      return getRelatedUrlsFieldBuilder()
          .addBuilder(index, io.grafeas.v1.RelatedUrl.getDefaultInstance());
    }
    /**
     *
     *
     *

     * Output only. URLs related to this vulnerability.
     *

     *
     * repeated .grafeas.v1.RelatedUrl related_urls = 7;
     */
    public java.util.List<io.grafeas.v1.RelatedUrl.Builder> getRelatedUrlsBuilderList() {
      return getRelatedUrlsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            io.grafeas.v1.RelatedUrl,
            io.grafeas.v1.RelatedUrl.Builder,
            io.grafeas.v1.RelatedUrlOrBuilder>
        getRelatedUrlsFieldBuilder() {
      if (relatedUrlsBuilder_ == null) {
        relatedUrlsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                io.grafeas.v1.RelatedUrl,
                io.grafeas.v1.RelatedUrl.Builder,
                io.grafeas.v1.RelatedUrlOrBuilder>(
                relatedUrls_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
        relatedUrls_ = null;
      }
      return relatedUrlsBuilder_;
    }

    private int effectiveSeverity_ = 0;
    /**
     *
     *
     *

     * The distro assigned severity for this vulnerability when it is available,
     * otherwise this is the note provider assigned severity.
     * When there are multiple PackageIssues for this vulnerability, they can have
     * different effective severities because some might be provided by the distro
     * while others are provided by the language ecosystem for a language pack.
     * For this reason, it is advised to use the effective severity on the
     * PackageIssue level. In the case where multiple PackageIssues have differing
     * effective severities, this field should be the highest severity for any of
     * the PackageIssues.
     *

     *
     * .grafeas.v1.Severity effective_severity = 8;
     *
     * @return The enum numeric value on the wire for effectiveSeverity.
     */
    @java.lang.Override
    public int getEffectiveSeverityValue() {
      return effectiveSeverity_;
    }
    /**
     *
     *
     *

     * The distro assigned severity for this vulnerability when it is available,
     * otherwise this is the note provider assigned severity.
     * When there are multiple PackageIssues for this vulnerability, they can have
     * different effective severities because some might be provided by the distro
     * while others are provided by the language ecosystem for a language pack.
     * For this reason, it is advised to use the effective severity on the
     * PackageIssue level. In the case where multiple PackageIssues have differing
     * effective severities, this field should be the highest severity for any of
     * the PackageIssues.
     *

     *
     * .grafeas.v1.Severity effective_severity = 8;
     *
     * @param value The enum numeric value on the wire for effectiveSeverity to set.
     * @return This builder for chaining.
     */
    public Builder setEffectiveSeverityValue(int value) {

      effectiveSeverity_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * The distro assigned severity for this vulnerability when it is available,
     * otherwise this is the note provider assigned severity.
     * When there are multiple PackageIssues for this vulnerability, they can have
     * different effective severities because some might be provided by the distro
     * while others are provided by the language ecosystem for a language pack.
     * For this reason, it is advised to use the effective severity on the
     * PackageIssue level. In the case where multiple PackageIssues have differing
     * effective severities, this field should be the highest severity for any of
     * the PackageIssues.
     *

     *
     * .grafeas.v1.Severity effective_severity = 8;
     *
     * @return The effectiveSeverity.
     */
    @java.lang.Override
    public io.grafeas.v1.Severity getEffectiveSeverity() {
      @SuppressWarnings("deprecation")
      io.grafeas.v1.Severity result = io.grafeas.v1.Severity.valueOf(effectiveSeverity_);
      return result == null ? io.grafeas.v1.Severity.UNRECOGNIZED : result;
    }
    /**
     *
     *
     *

     * The distro assigned severity for this vulnerability when it is available,
     * otherwise this is the note provider assigned severity.
     * When there are multiple PackageIssues for this vulnerability, they can have
     * different effective severities because some might be provided by the distro
     * while others are provided by the language ecosystem for a language pack.
     * For this reason, it is advised to use the effective severity on the
     * PackageIssue level. In the case where multiple PackageIssues have differing
     * effective severities, this field should be the highest severity for any of
     * the PackageIssues.
     *

     *
     * .grafeas.v1.Severity effective_severity = 8;
     *
     * @param value The effectiveSeverity to set.
     * @return This builder for chaining.
     */
    public Builder setEffectiveSeverity(io.grafeas.v1.Severity value) {
      if (value == null) {
        throw new NullPointerException();
      }

      effectiveSeverity_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * The distro assigned severity for this vulnerability when it is available,
     * otherwise this is the note provider assigned severity.
     * When there are multiple PackageIssues for this vulnerability, they can have
     * different effective severities because some might be provided by the distro
     * while others are provided by the language ecosystem for a language pack.
     * For this reason, it is advised to use the effective severity on the
     * PackageIssue level. In the case where multiple PackageIssues have differing
     * effective severities, this field should be the highest severity for any of
     * the PackageIssues.
     *

     *
     * .grafeas.v1.Severity effective_severity = 8;
     *
     * @return This builder for chaining.
     */
    public Builder clearEffectiveSeverity() {

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

    private boolean fixAvailable_;
    /**
     *
     *
     *

     * Output only. Whether at least one of the affected packages has a fix
     * available.
     *

     *
     * bool fix_available = 9;
     *
     * @return The fixAvailable.
     */
    @java.lang.Override
    public boolean getFixAvailable() {
      return fixAvailable_;
    }
    /**
     *
     *
     *

     * Output only. Whether at least one of the affected packages has a fix
     * available.
     *

     *
     * bool fix_available = 9;
     *
     * @param value The fixAvailable to set.
     * @return This builder for chaining.
     */
    public Builder setFixAvailable(boolean value) {

      fixAvailable_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. Whether at least one of the affected packages has a fix
     * available.
     *

     *
     * bool fix_available = 9;
     *
     * @return This builder for chaining.
     */
    public Builder clearFixAvailable() {

      fixAvailable_ = false;
      onChanged();
      return this;
    }

    private int cvssVersion_ = 0;
    /**
     *
     *
     *

     * Output only. CVSS version used to populate cvss_score and severity.
     *

     *
     * .grafeas.v1.CVSSVersion cvss_version = 11;
     *
     * @return The enum numeric value on the wire for cvssVersion.
     */
    @java.lang.Override
    public int getCvssVersionValue() {
      return cvssVersion_;
    }
    /**
     *
     *
     *

     * Output only. CVSS version used to populate cvss_score and severity.
     *

     *
     * .grafeas.v1.CVSSVersion cvss_version = 11;
     *
     * @param value The enum numeric value on the wire for cvssVersion to set.
     * @return This builder for chaining.
     */
    public Builder setCvssVersionValue(int value) {

      cvssVersion_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. CVSS version used to populate cvss_score and severity.
     *

     *
     * .grafeas.v1.CVSSVersion cvss_version = 11;
     *
     * @return The cvssVersion.
     */
    @java.lang.Override
    public io.grafeas.v1.CVSSVersion getCvssVersion() {
      @SuppressWarnings("deprecation")
      io.grafeas.v1.CVSSVersion result = io.grafeas.v1.CVSSVersion.valueOf(cvssVersion_);
      return result == null ? io.grafeas.v1.CVSSVersion.UNRECOGNIZED : result;
    }
    /**
     *
     *
     *

     * Output only. CVSS version used to populate cvss_score and severity.
     *

     *
     * .grafeas.v1.CVSSVersion cvss_version = 11;
     *
     * @param value The cvssVersion to set.
     * @return This builder for chaining.
     */
    public Builder setCvssVersion(io.grafeas.v1.CVSSVersion value) {
      if (value == null) {
        throw new NullPointerException();
      }

      cvssVersion_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. CVSS version used to populate cvss_score and severity.
     *

     *
     * .grafeas.v1.CVSSVersion cvss_version = 11;
     *
     * @return This builder for chaining.
     */
    public Builder clearCvssVersion() {

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

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

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

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

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

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

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

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

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

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

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