/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/devtools/containeranalysis/v1beta1/vulnerability/vulnerability.proto

package io.grafeas.v1beta1.vulnerability;

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

  private Vulnerability() {
    severity_ = 0;
    details_ = java.util.Collections.emptyList();
    windowsDetails_ = java.util.Collections.emptyList();
  }

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

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

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

              severity_ = rawValue;
              break;
            }
          case 26:
            {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                details_ =
                    new java.util.ArrayList<
                        io.grafeas.v1beta1.vulnerability.Vulnerability.Detail>();
                mutable_bitField0_ |= 0x00000001;
              }
              details_.add(
                  input.readMessage(
                      io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.parser(),
                      extensionRegistry));
              break;
            }
          case 34:
            {
              io.grafeas.v1beta1.vulnerability.CVSSv3.Builder subBuilder = null;
              if (cvssV3_ != null) {
                subBuilder = cvssV3_.toBuilder();
              }
              cvssV3_ =
                  input.readMessage(
                      io.grafeas.v1beta1.vulnerability.CVSSv3.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(cvssV3_);
                cvssV3_ = subBuilder.buildPartial();
              }

              break;
            }
          case 42:
            {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                windowsDetails_ =
                    new java.util.ArrayList<
                        io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail>();
                mutable_bitField0_ |= 0x00000002;
              }
              windowsDetails_.add(
                  input.readMessage(
                      io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.parser(),
                      extensionRegistry));
              break;
            }
          case 50:
            {
              com.google.protobuf.Timestamp.Builder subBuilder = null;
              if (sourceUpdateTime_ != null) {
                subBuilder = sourceUpdateTime_.toBuilder();
              }
              sourceUpdateTime_ =
                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(sourceUpdateTime_);
                sourceUpdateTime_ = subBuilder.buildPartial();
              }

              break;
            }
          default:
            {
              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        details_ = java.util.Collections.unmodifiableList(details_);
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        windowsDetails_ = java.util.Collections.unmodifiableList(windowsDetails_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return io.grafeas.v1beta1.vulnerability.VulnerabilityOuterClass
        .internal_static_grafeas_v1beta1_vulnerability_Vulnerability_descriptor;
  }

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

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

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

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

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

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

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

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

    /**
     *
     *
     * <pre>
     * The fix for this specific package version.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;</code>
     *
     * @return Whether the fixedLocation field is set.
     */
    boolean hasFixedLocation();
    /**
     *
     *
     * <pre>
     * The fix for this specific package version.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;</code>
     *
     * @return The fixedLocation.
     */
    io.grafeas.v1beta1.vulnerability.VulnerabilityLocation getFixedLocation();
    /**
     *
     *
     * <pre>
     * The fix for this specific package version.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;</code>
     */
    io.grafeas.v1beta1.vulnerability.VulnerabilityLocationOrBuilder getFixedLocationOrBuilder();

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

    /**
     *
     *
     * <pre>
     * Whether this detail is obsolete. Occurrences are expected not to point to
     * obsolete details.
     * </pre>
     *
     * <code>bool is_obsolete = 9;</code>
     *
     * @return The isObsolete.
     */
    boolean getIsObsolete();

    /**
     *
     *
     * <pre>
     * The time this information was last changed at the source. This is an
     * upstream timestamp from the underlying information source - e.g. Ubuntu
     * security tracker.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp source_update_time = 10;</code>
     *
     * @return Whether the sourceUpdateTime field is set.
     */
    boolean hasSourceUpdateTime();
    /**
     *
     *
     * <pre>
     * The time this information was last changed at the source. This is an
     * upstream timestamp from the underlying information source - e.g. Ubuntu
     * security tracker.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp source_update_time = 10;</code>
     *
     * @return The sourceUpdateTime.
     */
    com.google.protobuf.Timestamp getSourceUpdateTime();
    /**
     *
     *
     * <pre>
     * The time this information was last changed at the source. This is an
     * upstream timestamp from the underlying information source - e.g. Ubuntu
     * security tracker.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp source_update_time = 10;</code>
     */
    com.google.protobuf.TimestampOrBuilder getSourceUpdateTimeOrBuilder();
  }
  /**
   *
   *
   * <pre>
   * Identifies all appearances of this vulnerability in the package for a
   * specific distro/location. For example: glibc in
   * cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
   * </pre>
   *
   * Protobuf type {@code grafeas.v1beta1.vulnerability.Vulnerability.Detail}
   */
  public static final class Detail extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:grafeas.v1beta1.vulnerability.Vulnerability.Detail)
      DetailOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use Detail.newBuilder() to construct.
    private Detail(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private Detail() {
      cpeUri_ = "";
      package_ = "";
      severityName_ = "";
      description_ = "";
      packageType_ = "";
    }

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

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

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

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

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

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

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

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

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

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

                packageType_ = s;
                break;
              }
            case 72:
              {
                isObsolete_ = input.readBool();
                break;
              }
            case 82:
              {
                com.google.protobuf.Timestamp.Builder subBuilder = null;
                if (sourceUpdateTime_ != null) {
                  subBuilder = sourceUpdateTime_.toBuilder();
                }
                sourceUpdateTime_ =
                    input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(sourceUpdateTime_);
                  sourceUpdateTime_ = subBuilder.buildPartial();
                }

                break;
              }
            default:
              {
                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                  done = true;
                }
                break;
              }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return io.grafeas.v1beta1.vulnerability.VulnerabilityOuterClass
          .internal_static_grafeas_v1beta1_vulnerability_Vulnerability_Detail_descriptor;
    }

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

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

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

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

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

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

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

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

    public static final int PACKAGE_TYPE_FIELD_NUMBER = 8;
    private volatile java.lang.Object packageType_;
    /**
     *
     *
     * <pre>
     * The type of package; whether native or non native(ruby gems, node.js
     * packages etc).
     * </pre>
     *
     * <code>string package_type = 8;</code>
     *
     * @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;
      }
    }
    /**
     *
     *
     * <pre>
     * The type of package; whether native or non native(ruby gems, node.js
     * packages etc).
     * </pre>
     *
     * <code>string package_type = 8;</code>
     *
     * @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 IS_OBSOLETE_FIELD_NUMBER = 9;
    private boolean isObsolete_;
    /**
     *
     *
     * <pre>
     * Whether this detail is obsolete. Occurrences are expected not to point to
     * obsolete details.
     * </pre>
     *
     * <code>bool is_obsolete = 9;</code>
     *
     * @return The isObsolete.
     */
    @java.lang.Override
    public boolean getIsObsolete() {
      return isObsolete_;
    }

    public static final int SOURCE_UPDATE_TIME_FIELD_NUMBER = 10;
    private com.google.protobuf.Timestamp sourceUpdateTime_;
    /**
     *
     *
     * <pre>
     * The time this information was last changed at the source. This is an
     * upstream timestamp from the underlying information source - e.g. Ubuntu
     * security tracker.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp source_update_time = 10;</code>
     *
     * @return Whether the sourceUpdateTime field is set.
     */
    @java.lang.Override
    public boolean hasSourceUpdateTime() {
      return sourceUpdateTime_ != null;
    }
    /**
     *
     *
     * <pre>
     * The time this information was last changed at the source. This is an
     * upstream timestamp from the underlying information source - e.g. Ubuntu
     * security tracker.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp source_update_time = 10;</code>
     *
     * @return The sourceUpdateTime.
     */
    @java.lang.Override
    public com.google.protobuf.Timestamp getSourceUpdateTime() {
      return sourceUpdateTime_ == null
          ? com.google.protobuf.Timestamp.getDefaultInstance()
          : sourceUpdateTime_;
    }
    /**
     *
     *
     * <pre>
     * The time this information was last changed at the source. This is an
     * upstream timestamp from the underlying information source - e.g. Ubuntu
     * security tracker.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp source_update_time = 10;</code>
     */
    @java.lang.Override
    public com.google.protobuf.TimestampOrBuilder getSourceUpdateTimeOrBuilder() {
      return getSourceUpdateTime();
    }

    private byte memoizedIsInitialized = -1;

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (!getCpeUriBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpeUri_);
      }
      if (!getPackageBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, package_);
      }
      if (minAffectedVersion_ != null) {
        output.writeMessage(3, getMinAffectedVersion());
      }
      if (maxAffectedVersion_ != null) {
        output.writeMessage(4, getMaxAffectedVersion());
      }
      if (!getSeverityNameBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, severityName_);
      }
      if (!getDescriptionBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_);
      }
      if (fixedLocation_ != null) {
        output.writeMessage(7, getFixedLocation());
      }
      if (!getPackageTypeBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 8, packageType_);
      }
      if (isObsolete_ != false) {
        output.writeBool(9, isObsolete_);
      }
      if (sourceUpdateTime_ != null) {
        output.writeMessage(10, getSourceUpdateTime());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (!getCpeUriBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpeUri_);
      }
      if (!getPackageBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, package_);
      }
      if (minAffectedVersion_ != null) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMinAffectedVersion());
      }
      if (maxAffectedVersion_ != null) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMaxAffectedVersion());
      }
      if (!getSeverityNameBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, severityName_);
      }
      if (!getDescriptionBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_);
      }
      if (fixedLocation_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFixedLocation());
      }
      if (!getPackageTypeBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, packageType_);
      }
      if (isObsolete_ != false) {
        size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, isObsolete_);
      }
      if (sourceUpdateTime_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSourceUpdateTime());
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

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

      if (!getCpeUri().equals(other.getCpeUri())) return false;
      if (!getPackage().equals(other.getPackage())) return false;
      if (hasMinAffectedVersion() != other.hasMinAffectedVersion()) return false;
      if (hasMinAffectedVersion()) {
        if (!getMinAffectedVersion().equals(other.getMinAffectedVersion())) return false;
      }
      if (hasMaxAffectedVersion() != other.hasMaxAffectedVersion()) return false;
      if (hasMaxAffectedVersion()) {
        if (!getMaxAffectedVersion().equals(other.getMaxAffectedVersion())) return false;
      }
      if (!getSeverityName().equals(other.getSeverityName())) return false;
      if (!getDescription().equals(other.getDescription())) return false;
      if (hasFixedLocation() != other.hasFixedLocation()) return false;
      if (hasFixedLocation()) {
        if (!getFixedLocation().equals(other.getFixedLocation())) return false;
      }
      if (!getPackageType().equals(other.getPackageType())) return false;
      if (getIsObsolete() != other.getIsObsolete()) return false;
      if (hasSourceUpdateTime() != other.hasSourceUpdateTime()) return false;
      if (hasSourceUpdateTime()) {
        if (!getSourceUpdateTime().equals(other.getSourceUpdateTime())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) 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) + CPE_URI_FIELD_NUMBER;
      hash = (53 * hash) + getCpeUri().hashCode();
      hash = (37 * hash) + PACKAGE_FIELD_NUMBER;
      hash = (53 * hash) + getPackage().hashCode();
      if (hasMinAffectedVersion()) {
        hash = (37 * hash) + MIN_AFFECTED_VERSION_FIELD_NUMBER;
        hash = (53 * hash) + getMinAffectedVersion().hashCode();
      }
      if (hasMaxAffectedVersion()) {
        hash = (37 * hash) + MAX_AFFECTED_VERSION_FIELD_NUMBER;
        hash = (53 * hash) + getMaxAffectedVersion().hashCode();
      }
      hash = (37 * hash) + SEVERITY_NAME_FIELD_NUMBER;
      hash = (53 * hash) + getSeverityName().hashCode();
      hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
      hash = (53 * hash) + getDescription().hashCode();
      if (hasFixedLocation()) {
        hash = (37 * hash) + FIXED_LOCATION_FIELD_NUMBER;
        hash = (53 * hash) + getFixedLocation().hashCode();
      }
      hash = (37 * hash) + PACKAGE_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getPackageType().hashCode();
      hash = (37 * hash) + IS_OBSOLETE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsObsolete());
      if (hasSourceUpdateTime()) {
        hash = (37 * hash) + SOURCE_UPDATE_TIME_FIELD_NUMBER;
        hash = (53 * hash) + getSourceUpdateTime().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static io.grafeas.v1beta1.vulnerability.Vulnerability.Detail parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

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

    public static io.grafeas.v1beta1.vulnerability.Vulnerability.Detail parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static io.grafeas.v1beta1.vulnerability.Vulnerability.Detail parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static io.grafeas.v1beta1.vulnerability.Vulnerability.Detail parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

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

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

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

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

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

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

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

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

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

    public static Builder newBuilder(
        io.grafeas.v1beta1.vulnerability.Vulnerability.Detail prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

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

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     *
     *
     * <pre>
     * Identifies all appearances of this vulnerability in the package for a
     * specific distro/location. For example: glibc in
     * cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
     * </pre>
     *
     * Protobuf type {@code grafeas.v1beta1.vulnerability.Vulnerability.Detail}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:grafeas.v1beta1.vulnerability.Vulnerability.Detail)
        io.grafeas.v1beta1.vulnerability.Vulnerability.DetailOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return io.grafeas.v1beta1.vulnerability.VulnerabilityOuterClass
            .internal_static_grafeas_v1beta1_vulnerability_Vulnerability_Detail_descriptor;
      }

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

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

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

      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
      }

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

        package_ = "";

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

        description_ = "";

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

        isObsolete_ = false;

        if (sourceUpdateTimeBuilder_ == null) {
          sourceUpdateTime_ = null;
        } else {
          sourceUpdateTime_ = null;
          sourceUpdateTimeBuilder_ = null;
        }
        return this;
      }

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

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

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

      @java.lang.Override
      public io.grafeas.v1beta1.vulnerability.Vulnerability.Detail buildPartial() {
        io.grafeas.v1beta1.vulnerability.Vulnerability.Detail result =
            new io.grafeas.v1beta1.vulnerability.Vulnerability.Detail(this);
        result.cpeUri_ = cpeUri_;
        result.package_ = package_;
        if (minAffectedVersionBuilder_ == null) {
          result.minAffectedVersion_ = minAffectedVersion_;
        } else {
          result.minAffectedVersion_ = minAffectedVersionBuilder_.build();
        }
        if (maxAffectedVersionBuilder_ == null) {
          result.maxAffectedVersion_ = maxAffectedVersion_;
        } else {
          result.maxAffectedVersion_ = maxAffectedVersionBuilder_.build();
        }
        result.severityName_ = severityName_;
        result.description_ = description_;
        if (fixedLocationBuilder_ == null) {
          result.fixedLocation_ = fixedLocation_;
        } else {
          result.fixedLocation_ = fixedLocationBuilder_.build();
        }
        result.packageType_ = packageType_;
        result.isObsolete_ = isObsolete_;
        if (sourceUpdateTimeBuilder_ == null) {
          result.sourceUpdateTime_ = sourceUpdateTime_;
        } else {
          result.sourceUpdateTime_ = sourceUpdateTimeBuilder_.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.v1beta1.vulnerability.Vulnerability.Detail) {
          return mergeFrom((io.grafeas.v1beta1.vulnerability.Vulnerability.Detail) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.grafeas.v1beta1.vulnerability.Vulnerability.Detail other) {
        if (other == io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.getDefaultInstance())
          return this;
        if (!other.getCpeUri().isEmpty()) {
          cpeUri_ = other.cpeUri_;
          onChanged();
        }
        if (!other.getPackage().isEmpty()) {
          package_ = other.package_;
          onChanged();
        }
        if (other.hasMinAffectedVersion()) {
          mergeMinAffectedVersion(other.getMinAffectedVersion());
        }
        if (other.hasMaxAffectedVersion()) {
          mergeMaxAffectedVersion(other.getMaxAffectedVersion());
        }
        if (!other.getSeverityName().isEmpty()) {
          severityName_ = other.severityName_;
          onChanged();
        }
        if (!other.getDescription().isEmpty()) {
          description_ = other.description_;
          onChanged();
        }
        if (other.hasFixedLocation()) {
          mergeFixedLocation(other.getFixedLocation());
        }
        if (!other.getPackageType().isEmpty()) {
          packageType_ = other.packageType_;
          onChanged();
        }
        if (other.getIsObsolete() != false) {
          setIsObsolete(other.getIsObsolete());
        }
        if (other.hasSourceUpdateTime()) {
          mergeSourceUpdateTime(other.getSourceUpdateTime());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        io.grafeas.v1beta1.vulnerability.Vulnerability.Detail parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage =
              (io.grafeas.v1beta1.vulnerability.Vulnerability.Detail) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

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

        cpeUri_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The CPE URI in
       * [cpe format](https://cpe.mitre.org/specification/) in which the
       * vulnerability manifests. Examples include distro or storage location for
       * vulnerable jar.
       * </pre>
       *
       * <code>string cpe_uri = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearCpeUri() {

        cpeUri_ = getDefaultInstance().getCpeUri();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The CPE URI in
       * [cpe format](https://cpe.mitre.org/specification/) in which the
       * vulnerability manifests. Examples include distro or storage location for
       * vulnerable jar.
       * </pre>
       *
       * <code>string cpe_uri = 1;</code>
       *
       * @param value The bytes for cpeUri to set.
       * @return This builder for chaining.
       */
      public Builder setCpeUriBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);

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

      private java.lang.Object package_ = "";
      /**
       *
       *
       * <pre>
       * Required. The name of the package where the vulnerability was found.
       * </pre>
       *
       * <code>string package = 2;</code>
       *
       * @return The package.
       */
      public java.lang.String getPackage() {
        java.lang.Object ref = package_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          package_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The name of the package where the vulnerability was found.
       * </pre>
       *
       * <code>string package = 2;</code>
       *
       * @return The bytes for package.
       */
      public com.google.protobuf.ByteString getPackageBytes() {
        java.lang.Object ref = package_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          package_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The name of the package where the vulnerability was found.
       * </pre>
       *
       * <code>string package = 2;</code>
       *
       * @param value The package to set.
       * @return This builder for chaining.
       */
      public Builder setPackage(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }

        package_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The name of the package where the vulnerability was found.
       * </pre>
       *
       * <code>string package = 2;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearPackage() {

        package_ = getDefaultInstance().getPackage();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The name of the package where the vulnerability was found.
       * </pre>
       *
       * <code>string package = 2;</code>
       *
       * @param value The bytes for package to set.
       * @return This builder for chaining.
       */
      public Builder setPackageBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);

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

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

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

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

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

        return this;
      }
      /**
       *
       *
       * <pre>
       * The min version of the package in which the vulnerability exists.
       * </pre>
       *
       * <code>.grafeas.v1beta1.package.Version min_affected_version = 3;</code>
       */
      public io.grafeas.v1beta1.pkg.Version.Builder getMinAffectedVersionBuilder() {

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

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

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

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

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

        return this;
      }
      /**
       *
       *
       * <pre>
       * The max version of the package in which the vulnerability exists.
       * </pre>
       *
       * <code>.grafeas.v1beta1.package.Version max_affected_version = 4;</code>
       */
      public io.grafeas.v1beta1.pkg.Version.Builder getMaxAffectedVersionBuilder() {

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

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

        severityName_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The severity (eg: distro assigned severity) for this vulnerability.
       * </pre>
       *
       * <code>string severity_name = 5;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearSeverityName() {

        severityName_ = getDefaultInstance().getSeverityName();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The severity (eg: distro assigned severity) for this vulnerability.
       * </pre>
       *
       * <code>string severity_name = 5;</code>
       *
       * @param value The bytes for severityName to set.
       * @return This builder for chaining.
       */
      public Builder setSeverityNameBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);

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

      private java.lang.Object description_ = "";
      /**
       *
       *
       * <pre>
       * A vendor-specific description of this note.
       * </pre>
       *
       * <code>string description = 6;</code>
       *
       * @return The description.
       */
      public java.lang.String getDescription() {
        java.lang.Object ref = description_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          description_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * A vendor-specific description of this note.
       * </pre>
       *
       * <code>string description = 6;</code>
       *
       * @return The bytes for description.
       */
      public com.google.protobuf.ByteString getDescriptionBytes() {
        java.lang.Object ref = description_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          description_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * A vendor-specific description of this note.
       * </pre>
       *
       * <code>string description = 6;</code>
       *
       * @param value The description to set.
       * @return This builder for chaining.
       */
      public Builder setDescription(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }

        description_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * A vendor-specific description of this note.
       * </pre>
       *
       * <code>string description = 6;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearDescription() {

        description_ = getDefaultInstance().getDescription();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * A vendor-specific description of this note.
       * </pre>
       *
       * <code>string description = 6;</code>
       *
       * @param value The bytes for description to set.
       * @return This builder for chaining.
       */
      public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);

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

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

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

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

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

        return this;
      }
      /**
       *
       *
       * <pre>
       * The fix for this specific package version.
       * </pre>
       *
       * <code>.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;</code>
       */
      public io.grafeas.v1beta1.vulnerability.VulnerabilityLocation.Builder
          getFixedLocationBuilder() {

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

      private java.lang.Object packageType_ = "";
      /**
       *
       *
       * <pre>
       * The type of package; whether native or non native(ruby gems, node.js
       * packages etc).
       * </pre>
       *
       * <code>string package_type = 8;</code>
       *
       * @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;
        }
      }
      /**
       *
       *
       * <pre>
       * The type of package; whether native or non native(ruby gems, node.js
       * packages etc).
       * </pre>
       *
       * <code>string package_type = 8;</code>
       *
       * @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;
        }
      }
      /**
       *
       *
       * <pre>
       * The type of package; whether native or non native(ruby gems, node.js
       * packages etc).
       * </pre>
       *
       * <code>string package_type = 8;</code>
       *
       * @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;
      }
      /**
       *
       *
       * <pre>
       * The type of package; whether native or non native(ruby gems, node.js
       * packages etc).
       * </pre>
       *
       * <code>string package_type = 8;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearPackageType() {

        packageType_ = getDefaultInstance().getPackageType();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The type of package; whether native or non native(ruby gems, node.js
       * packages etc).
       * </pre>
       *
       * <code>string package_type = 8;</code>
       *
       * @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 boolean isObsolete_;
      /**
       *
       *
       * <pre>
       * Whether this detail is obsolete. Occurrences are expected not to point to
       * obsolete details.
       * </pre>
       *
       * <code>bool is_obsolete = 9;</code>
       *
       * @return The isObsolete.
       */
      @java.lang.Override
      public boolean getIsObsolete() {
        return isObsolete_;
      }
      /**
       *
       *
       * <pre>
       * Whether this detail is obsolete. Occurrences are expected not to point to
       * obsolete details.
       * </pre>
       *
       * <code>bool is_obsolete = 9;</code>
       *
       * @param value The isObsolete to set.
       * @return This builder for chaining.
       */
      public Builder setIsObsolete(boolean value) {

        isObsolete_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Whether this detail is obsolete. Occurrences are expected not to point to
       * obsolete details.
       * </pre>
       *
       * <code>bool is_obsolete = 9;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearIsObsolete() {

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

      private com.google.protobuf.Timestamp sourceUpdateTime_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp,
              com.google.protobuf.Timestamp.Builder,
              com.google.protobuf.TimestampOrBuilder>
          sourceUpdateTimeBuilder_;
      /**
       *
       *
       * <pre>
       * The time this information was last changed at the source. This is an
       * upstream timestamp from the underlying information source - e.g. Ubuntu
       * security tracker.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp source_update_time = 10;</code>
       *
       * @return Whether the sourceUpdateTime field is set.
       */
      public boolean hasSourceUpdateTime() {
        return sourceUpdateTimeBuilder_ != null || sourceUpdateTime_ != null;
      }
      /**
       *
       *
       * <pre>
       * The time this information was last changed at the source. This is an
       * upstream timestamp from the underlying information source - e.g. Ubuntu
       * security tracker.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp source_update_time = 10;</code>
       *
       * @return The sourceUpdateTime.
       */
      public com.google.protobuf.Timestamp getSourceUpdateTime() {
        if (sourceUpdateTimeBuilder_ == null) {
          return sourceUpdateTime_ == null
              ? com.google.protobuf.Timestamp.getDefaultInstance()
              : sourceUpdateTime_;
        } else {
          return sourceUpdateTimeBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * The time this information was last changed at the source. This is an
       * upstream timestamp from the underlying information source - e.g. Ubuntu
       * security tracker.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp source_update_time = 10;</code>
       */
      public Builder setSourceUpdateTime(com.google.protobuf.Timestamp value) {
        if (sourceUpdateTimeBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          sourceUpdateTime_ = value;
          onChanged();
        } else {
          sourceUpdateTimeBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * The time this information was last changed at the source. This is an
       * upstream timestamp from the underlying information source - e.g. Ubuntu
       * security tracker.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp source_update_time = 10;</code>
       */
      public Builder setSourceUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
        if (sourceUpdateTimeBuilder_ == null) {
          sourceUpdateTime_ = builderForValue.build();
          onChanged();
        } else {
          sourceUpdateTimeBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * The time this information was last changed at the source. This is an
       * upstream timestamp from the underlying information source - e.g. Ubuntu
       * security tracker.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp source_update_time = 10;</code>
       */
      public Builder mergeSourceUpdateTime(com.google.protobuf.Timestamp value) {
        if (sourceUpdateTimeBuilder_ == null) {
          if (sourceUpdateTime_ != null) {
            sourceUpdateTime_ =
                com.google.protobuf.Timestamp.newBuilder(sourceUpdateTime_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            sourceUpdateTime_ = value;
          }
          onChanged();
        } else {
          sourceUpdateTimeBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * The time this information was last changed at the source. This is an
       * upstream timestamp from the underlying information source - e.g. Ubuntu
       * security tracker.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp source_update_time = 10;</code>
       */
      public Builder clearSourceUpdateTime() {
        if (sourceUpdateTimeBuilder_ == null) {
          sourceUpdateTime_ = null;
          onChanged();
        } else {
          sourceUpdateTime_ = null;
          sourceUpdateTimeBuilder_ = null;
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * The time this information was last changed at the source. This is an
       * upstream timestamp from the underlying information source - e.g. Ubuntu
       * security tracker.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp source_update_time = 10;</code>
       */
      public com.google.protobuf.Timestamp.Builder getSourceUpdateTimeBuilder() {

        onChanged();
        return getSourceUpdateTimeFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * The time this information was last changed at the source. This is an
       * upstream timestamp from the underlying information source - e.g. Ubuntu
       * security tracker.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp source_update_time = 10;</code>
       */
      public com.google.protobuf.TimestampOrBuilder getSourceUpdateTimeOrBuilder() {
        if (sourceUpdateTimeBuilder_ != null) {
          return sourceUpdateTimeBuilder_.getMessageOrBuilder();
        } else {
          return sourceUpdateTime_ == null
              ? com.google.protobuf.Timestamp.getDefaultInstance()
              : sourceUpdateTime_;
        }
      }
      /**
       *
       *
       * <pre>
       * The time this information was last changed at the source. This is an
       * upstream timestamp from the underlying information source - e.g. Ubuntu
       * security tracker.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp source_update_time = 10;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp,
              com.google.protobuf.Timestamp.Builder,
              com.google.protobuf.TimestampOrBuilder>
          getSourceUpdateTimeFieldBuilder() {
        if (sourceUpdateTimeBuilder_ == null) {
          sourceUpdateTimeBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.protobuf.Timestamp,
                  com.google.protobuf.Timestamp.Builder,
                  com.google.protobuf.TimestampOrBuilder>(
                  getSourceUpdateTime(), getParentForChildren(), isClean());
          sourceUpdateTime_ = null;
        }
        return sourceUpdateTimeBuilder_;
      }

      @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.v1beta1.vulnerability.Vulnerability.Detail)
    }

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

    static {
      DEFAULT_INSTANCE = new io.grafeas.v1beta1.vulnerability.Vulnerability.Detail();
    }

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

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

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

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

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

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

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

    /**
     *
     *
     * <pre>
     * Required. The name of the vulnerability.
     * </pre>
     *
     * <code>string name = 2;</code>
     *
     * @return The name.
     */
    java.lang.String getName();
    /**
     *
     *
     * <pre>
     * Required. The name of the vulnerability.
     * </pre>
     *
     * <code>string name = 2;</code>
     *
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString getNameBytes();

    /**
     *
     *
     * <pre>
     * The description of the vulnerability.
     * </pre>
     *
     * <code>string description = 3;</code>
     *
     * @return The description.
     */
    java.lang.String getDescription();
    /**
     *
     *
     * <pre>
     * The description of the vulnerability.
     * </pre>
     *
     * <code>string description = 3;</code>
     *
     * @return The bytes for description.
     */
    com.google.protobuf.ByteString getDescriptionBytes();

    /**
     *
     *
     * <pre>
     * Required. The names of the KBs which have hotfixes to mitigate this
     * vulnerability. Note that there may be multiple hotfixes (and thus
     * multiple KBs) that mitigate a given vulnerability. Currently any listed
     * kb's presence is considered a fix.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
     * </code>
     */
    java.util.List<io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase>
        getFixingKbsList();
    /**
     *
     *
     * <pre>
     * Required. The names of the KBs which have hotfixes to mitigate this
     * vulnerability. Note that there may be multiple hotfixes (and thus
     * multiple KBs) that mitigate a given vulnerability. Currently any listed
     * kb's presence is considered a fix.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
     * </code>
     */
    io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase getFixingKbs(
        int index);
    /**
     *
     *
     * <pre>
     * Required. The names of the KBs which have hotfixes to mitigate this
     * vulnerability. Note that there may be multiple hotfixes (and thus
     * multiple KBs) that mitigate a given vulnerability. Currently any listed
     * kb's presence is considered a fix.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
     * </code>
     */
    int getFixingKbsCount();
    /**
     *
     *
     * <pre>
     * Required. The names of the KBs which have hotfixes to mitigate this
     * vulnerability. Note that there may be multiple hotfixes (and thus
     * multiple KBs) that mitigate a given vulnerability. Currently any listed
     * kb's presence is considered a fix.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
     * </code>
     */
    java.util.List<
            ? extends
                io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBaseOrBuilder>
        getFixingKbsOrBuilderList();
    /**
     *
     *
     * <pre>
     * Required. The names of the KBs which have hotfixes to mitigate this
     * vulnerability. Note that there may be multiple hotfixes (and thus
     * multiple KBs) that mitigate a given vulnerability. Currently any listed
     * kb's presence is considered a fix.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
     * </code>
     */
    io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBaseOrBuilder
        getFixingKbsOrBuilder(int index);
  }
  /** Protobuf type {@code grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail} */
  public static final class WindowsDetail extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail)
      WindowsDetailOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use WindowsDetail.newBuilder() to construct.
    private WindowsDetail(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private WindowsDetail() {
      cpeUri_ = "";
      name_ = "";
      description_ = "";
      fixingKbs_ = java.util.Collections.emptyList();
    }

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

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

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

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

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

                description_ = s;
                break;
              }
            case 34:
              {
                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                  fixingKbs_ =
                      new java.util.ArrayList<
                          io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail
                              .KnowledgeBase>();
                  mutable_bitField0_ |= 0x00000001;
                }
                fixingKbs_.add(
                    input.readMessage(
                        io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase
                            .parser(),
                        extensionRegistry));
                break;
              }
            default:
              {
                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                  done = true;
                }
                break;
              }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          fixingKbs_ = java.util.Collections.unmodifiableList(fixingKbs_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return io.grafeas.v1beta1.vulnerability.VulnerabilityOuterClass
          .internal_static_grafeas_v1beta1_vulnerability_Vulnerability_WindowsDetail_descriptor;
    }

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

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

      /**
       *
       *
       * <pre>
       * The KB name (generally of the form KB[0-9]+ i.e. KB123456).
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return The name.
       */
      java.lang.String getName();
      /**
       *
       *
       * <pre>
       * The KB name (generally of the form KB[0-9]+ i.e. KB123456).
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return The bytes for name.
       */
      com.google.protobuf.ByteString getNameBytes();

      /**
       *
       *
       * <pre>
       * A link to the KB in the Windows update catalog -
       * https://www.catalog.update.microsoft.com/
       * </pre>
       *
       * <code>string url = 2;</code>
       *
       * @return The url.
       */
      java.lang.String getUrl();
      /**
       *
       *
       * <pre>
       * A link to the KB in the Windows update catalog -
       * https://www.catalog.update.microsoft.com/
       * </pre>
       *
       * <code>string url = 2;</code>
       *
       * @return The bytes for url.
       */
      com.google.protobuf.ByteString getUrlBytes();
    }
    /**
     * Protobuf type {@code grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase}
     */
    public static final class KnowledgeBase extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase)
        KnowledgeBaseOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use KnowledgeBase.newBuilder() to construct.
      private KnowledgeBase(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private KnowledgeBase() {
        name_ = "";
        url_ = "";
      }

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

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

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

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

                  url_ = s;
                  break;
                }
              default:
                {
                  if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                    done = true;
                  }
                  break;
                }
            }
          }
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(this);
        } finally {
          this.unknownFields = unknownFields.build();
          makeExtensionsImmutable();
        }
      }

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return io.grafeas.v1beta1.vulnerability.VulnerabilityOuterClass
            .internal_static_grafeas_v1beta1_vulnerability_Vulnerability_WindowsDetail_KnowledgeBase_descriptor;
      }

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

      public static final int NAME_FIELD_NUMBER = 1;
      private volatile java.lang.Object name_;
      /**
       *
       *
       * <pre>
       * The KB name (generally of the form KB[0-9]+ i.e. KB123456).
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return The name.
       */
      @java.lang.Override
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        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();
          name_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * The KB name (generally of the form KB[0-9]+ i.e. KB123456).
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return The bytes for name.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int URL_FIELD_NUMBER = 2;
      private volatile java.lang.Object url_;
      /**
       *
       *
       * <pre>
       * A link to the KB in the Windows update catalog -
       * https://www.catalog.update.microsoft.com/
       * </pre>
       *
       * <code>string url = 2;</code>
       *
       * @return The url.
       */
      @java.lang.Override
      public java.lang.String getUrl() {
        java.lang.Object ref = url_;
        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();
          url_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * A link to the KB in the Windows update catalog -
       * https://www.catalog.update.microsoft.com/
       * </pre>
       *
       * <code>string url = 2;</code>
       *
       * @return The bytes for url.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getUrlBytes() {
        java.lang.Object ref = url_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          url_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      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 (!getNameBytes().isEmpty()) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
        }
        if (!getUrlBytes().isEmpty()) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, url_);
        }
        unknownFields.writeTo(output);
      }

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

        size = 0;
        if (!getNameBytes().isEmpty()) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
        }
        if (!getUrlBytes().isEmpty()) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, url_);
        }
        size += unknownFields.getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj
            instanceof
            io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase)) {
          return super.equals(obj);
        }
        io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase other =
            (io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase) obj;

        if (!getName().equals(other.getName())) return false;
        if (!getUrl().equals(other.getUrl())) return false;
        if (!unknownFields.equals(other.unknownFields)) 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) + NAME_FIELD_NUMBER;
        hash = (53 * hash) + getName().hashCode();
        hash = (37 * hash) + URL_FIELD_NUMBER;
        hash = (53 * hash) + getUrl().hashCode();
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase
          parseFrom(java.nio.ByteBuffer data)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase
          parseFrom(
              java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase
          parseFrom(com.google.protobuf.ByteString data)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase
          parseFrom(
              com.google.protobuf.ByteString data,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase
          parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase
          parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase
          parseFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase
          parseFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase
          parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase
          parseFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase 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;
      }
      /**
       * Protobuf type {@code
       * grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase)
          io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBaseOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return io.grafeas.v1beta1.vulnerability.VulnerabilityOuterClass
              .internal_static_grafeas_v1beta1_vulnerability_Vulnerability_WindowsDetail_KnowledgeBase_descriptor;
        }

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

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

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

        private void maybeForceBuilderInitialization() {
          if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
        }

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

          url_ = "";

          return this;
        }

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

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

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

        @java.lang.Override
        public io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase
            buildPartial() {
          io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase result =
              new io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase(this);
          result.name_ = name_;
          result.url_ = url_;
          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.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase) {
            return mergeFrom(
                (io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase other) {
          if (other
              == io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase
                  .getDefaultInstance()) return this;
          if (!other.getName().isEmpty()) {
            name_ = other.name_;
            onChanged();
          }
          if (!other.getUrl().isEmpty()) {
            url_ = other.url_;
            onChanged();
          }
          this.mergeUnknownFields(other.unknownFields);
          onChanged();
          return this;
        }

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

        @java.lang.Override
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase parsedMessage =
              null;
          try {
            parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            parsedMessage =
                (io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase)
                    e.getUnfinishedMessage();
            throw e.unwrapIOException();
          } finally {
            if (parsedMessage != null) {
              mergeFrom(parsedMessage);
            }
          }
          return this;
        }

        private java.lang.Object name_ = "";
        /**
         *
         *
         * <pre>
         * The KB name (generally of the form KB[0-9]+ i.e. KB123456).
         * </pre>
         *
         * <code>string name = 1;</code>
         *
         * @return The name.
         */
        public java.lang.String getName() {
          java.lang.Object ref = name_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            name_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * The KB name (generally of the form KB[0-9]+ i.e. KB123456).
         * </pre>
         *
         * <code>string name = 1;</code>
         *
         * @return The bytes for name.
         */
        public com.google.protobuf.ByteString getNameBytes() {
          java.lang.Object ref = name_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            name_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * The KB name (generally of the form KB[0-9]+ i.e. KB123456).
         * </pre>
         *
         * <code>string name = 1;</code>
         *
         * @param value The name to set.
         * @return This builder for chaining.
         */
        public Builder setName(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }

          name_ = value;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * The KB name (generally of the form KB[0-9]+ i.e. KB123456).
         * </pre>
         *
         * <code>string name = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearName() {

          name_ = getDefaultInstance().getName();
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * The KB name (generally of the form KB[0-9]+ i.e. KB123456).
         * </pre>
         *
         * <code>string name = 1;</code>
         *
         * @param value The bytes for name to set.
         * @return This builder for chaining.
         */
        public Builder setNameBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);

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

        private java.lang.Object url_ = "";
        /**
         *
         *
         * <pre>
         * A link to the KB in the Windows update catalog -
         * https://www.catalog.update.microsoft.com/
         * </pre>
         *
         * <code>string url = 2;</code>
         *
         * @return The url.
         */
        public java.lang.String getUrl() {
          java.lang.Object ref = url_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            url_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * A link to the KB in the Windows update catalog -
         * https://www.catalog.update.microsoft.com/
         * </pre>
         *
         * <code>string url = 2;</code>
         *
         * @return The bytes for url.
         */
        public com.google.protobuf.ByteString getUrlBytes() {
          java.lang.Object ref = url_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            url_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * A link to the KB in the Windows update catalog -
         * https://www.catalog.update.microsoft.com/
         * </pre>
         *
         * <code>string url = 2;</code>
         *
         * @param value The url to set.
         * @return This builder for chaining.
         */
        public Builder setUrl(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }

          url_ = value;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * A link to the KB in the Windows update catalog -
         * https://www.catalog.update.microsoft.com/
         * </pre>
         *
         * <code>string url = 2;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearUrl() {

          url_ = getDefaultInstance().getUrl();
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * A link to the KB in the Windows update catalog -
         * https://www.catalog.update.microsoft.com/
         * </pre>
         *
         * <code>string url = 2;</code>
         *
         * @param value The bytes for url to set.
         * @return This builder for chaining.
         */
        public Builder setUrlBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);

          url_ = value;
          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.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase)
      }

      // @@protoc_insertion_point(class_scope:grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase)
      private static final io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail
              .KnowledgeBase
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE =
            new io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase();
      }

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

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

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

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

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

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

    public static final int NAME_FIELD_NUMBER = 2;
    private volatile java.lang.Object name_;
    /**
     *
     *
     * <pre>
     * Required. The name of the vulnerability.
     * </pre>
     *
     * <code>string name = 2;</code>
     *
     * @return The name.
     */
    @java.lang.Override
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      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();
        name_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The name of the vulnerability.
     * </pre>
     *
     * <code>string name = 2;</code>
     *
     * @return The bytes for name.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int DESCRIPTION_FIELD_NUMBER = 3;
    private volatile java.lang.Object description_;
    /**
     *
     *
     * <pre>
     * The description of the vulnerability.
     * </pre>
     *
     * <code>string description = 3;</code>
     *
     * @return The description.
     */
    @java.lang.Override
    public java.lang.String getDescription() {
      java.lang.Object ref = description_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        description_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * The description of the vulnerability.
     * </pre>
     *
     * <code>string description = 3;</code>
     *
     * @return The bytes for description.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getDescriptionBytes() {
      java.lang.Object ref = description_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        description_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int FIXING_KBS_FIELD_NUMBER = 4;
    private java.util.List<
            io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase>
        fixingKbs_;
    /**
     *
     *
     * <pre>
     * Required. The names of the KBs which have hotfixes to mitigate this
     * vulnerability. Note that there may be multiple hotfixes (and thus
     * multiple KBs) that mitigate a given vulnerability. Currently any listed
     * kb's presence is considered a fix.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
     * </code>
     */
    @java.lang.Override
    public java.util.List<
            io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase>
        getFixingKbsList() {
      return fixingKbs_;
    }
    /**
     *
     *
     * <pre>
     * Required. The names of the KBs which have hotfixes to mitigate this
     * vulnerability. Note that there may be multiple hotfixes (and thus
     * multiple KBs) that mitigate a given vulnerability. Currently any listed
     * kb's presence is considered a fix.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
     * </code>
     */
    @java.lang.Override
    public java.util.List<
            ? extends
                io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBaseOrBuilder>
        getFixingKbsOrBuilderList() {
      return fixingKbs_;
    }
    /**
     *
     *
     * <pre>
     * Required. The names of the KBs which have hotfixes to mitigate this
     * vulnerability. Note that there may be multiple hotfixes (and thus
     * multiple KBs) that mitigate a given vulnerability. Currently any listed
     * kb's presence is considered a fix.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
     * </code>
     */
    @java.lang.Override
    public int getFixingKbsCount() {
      return fixingKbs_.size();
    }
    /**
     *
     *
     * <pre>
     * Required. The names of the KBs which have hotfixes to mitigate this
     * vulnerability. Note that there may be multiple hotfixes (and thus
     * multiple KBs) that mitigate a given vulnerability. Currently any listed
     * kb's presence is considered a fix.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
     * </code>
     */
    @java.lang.Override
    public io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase getFixingKbs(
        int index) {
      return fixingKbs_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Required. The names of the KBs which have hotfixes to mitigate this
     * vulnerability. Note that there may be multiple hotfixes (and thus
     * multiple KBs) that mitigate a given vulnerability. Currently any listed
     * kb's presence is considered a fix.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
     * </code>
     */
    @java.lang.Override
    public io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBaseOrBuilder
        getFixingKbsOrBuilder(int index) {
      return fixingKbs_.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 (!getCpeUriBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpeUri_);
      }
      if (!getNameBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
      }
      if (!getDescriptionBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
      }
      for (int i = 0; i < fixingKbs_.size(); i++) {
        output.writeMessage(4, fixingKbs_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (!getCpeUriBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpeUri_);
      }
      if (!getNameBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
      }
      if (!getDescriptionBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
      }
      for (int i = 0; i < fixingKbs_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, fixingKbs_.get(i));
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

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

      if (!getCpeUri().equals(other.getCpeUri())) return false;
      if (!getName().equals(other.getName())) return false;
      if (!getDescription().equals(other.getDescription())) return false;
      if (!getFixingKbsList().equals(other.getFixingKbsList())) return false;
      if (!unknownFields.equals(other.unknownFields)) 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) + CPE_URI_FIELD_NUMBER;
      hash = (53 * hash) + getCpeUri().hashCode();
      hash = (37 * hash) + NAME_FIELD_NUMBER;
      hash = (53 * hash) + getName().hashCode();
      hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
      hash = (53 * hash) + getDescription().hashCode();
      if (getFixingKbsCount() > 0) {
        hash = (37 * hash) + FIXING_KBS_FIELD_NUMBER;
        hash = (53 * hash) + getFixingKbsList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

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

    public static io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail parseFrom(
        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

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

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

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

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

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

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

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

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

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

    public static Builder newBuilder(
        io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail 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;
    }
    /** Protobuf type {@code grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail} */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail)
        io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetailOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return io.grafeas.v1beta1.vulnerability.VulnerabilityOuterClass
            .internal_static_grafeas_v1beta1_vulnerability_Vulnerability_WindowsDetail_descriptor;
      }

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

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

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

      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
          getFixingKbsFieldBuilder();
        }
      }

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

        name_ = "";

        description_ = "";

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

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

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

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

      @java.lang.Override
      public io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail buildPartial() {
        io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail result =
            new io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail(this);
        int from_bitField0_ = bitField0_;
        result.cpeUri_ = cpeUri_;
        result.name_ = name_;
        result.description_ = description_;
        if (fixingKbsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            fixingKbs_ = java.util.Collections.unmodifiableList(fixingKbs_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.fixingKbs_ = fixingKbs_;
        } else {
          result.fixingKbs_ = fixingKbsBuilder_.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.v1beta1.vulnerability.Vulnerability.WindowsDetail) {
          return mergeFrom((io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail other) {
        if (other
            == io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.getDefaultInstance())
          return this;
        if (!other.getCpeUri().isEmpty()) {
          cpeUri_ = other.cpeUri_;
          onChanged();
        }
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          onChanged();
        }
        if (!other.getDescription().isEmpty()) {
          description_ = other.description_;
          onChanged();
        }
        if (fixingKbsBuilder_ == null) {
          if (!other.fixingKbs_.isEmpty()) {
            if (fixingKbs_.isEmpty()) {
              fixingKbs_ = other.fixingKbs_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureFixingKbsIsMutable();
              fixingKbs_.addAll(other.fixingKbs_);
            }
            onChanged();
          }
        } else {
          if (!other.fixingKbs_.isEmpty()) {
            if (fixingKbsBuilder_.isEmpty()) {
              fixingKbsBuilder_.dispose();
              fixingKbsBuilder_ = null;
              fixingKbs_ = other.fixingKbs_;
              bitField0_ = (bitField0_ & ~0x00000001);
              fixingKbsBuilder_ =
                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                      ? getFixingKbsFieldBuilder()
                      : null;
            } else {
              fixingKbsBuilder_.addAllMessages(other.fixingKbs_);
            }
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage =
              (io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail)
                  e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int bitField0_;

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

        cpeUri_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The CPE URI in
       * [cpe format](https://cpe.mitre.org/specification/) in which the
       * vulnerability manifests. Examples include distro or storage location for
       * vulnerable jar.
       * </pre>
       *
       * <code>string cpe_uri = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearCpeUri() {

        cpeUri_ = getDefaultInstance().getCpeUri();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The CPE URI in
       * [cpe format](https://cpe.mitre.org/specification/) in which the
       * vulnerability manifests. Examples include distro or storage location for
       * vulnerable jar.
       * </pre>
       *
       * <code>string cpe_uri = 1;</code>
       *
       * @param value The bytes for cpeUri to set.
       * @return This builder for chaining.
       */
      public Builder setCpeUriBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);

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

      private java.lang.Object name_ = "";
      /**
       *
       *
       * <pre>
       * Required. The name of the vulnerability.
       * </pre>
       *
       * <code>string name = 2;</code>
       *
       * @return The name.
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The name of the vulnerability.
       * </pre>
       *
       * <code>string name = 2;</code>
       *
       * @return The bytes for name.
       */
      public com.google.protobuf.ByteString getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The name of the vulnerability.
       * </pre>
       *
       * <code>string name = 2;</code>
       *
       * @param value The name to set.
       * @return This builder for chaining.
       */
      public Builder setName(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }

        name_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The name of the vulnerability.
       * </pre>
       *
       * <code>string name = 2;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearName() {

        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The name of the vulnerability.
       * </pre>
       *
       * <code>string name = 2;</code>
       *
       * @param value The bytes for name to set.
       * @return This builder for chaining.
       */
      public Builder setNameBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);

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

      private java.lang.Object description_ = "";
      /**
       *
       *
       * <pre>
       * The description of the vulnerability.
       * </pre>
       *
       * <code>string description = 3;</code>
       *
       * @return The description.
       */
      public java.lang.String getDescription() {
        java.lang.Object ref = description_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          description_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The description of the vulnerability.
       * </pre>
       *
       * <code>string description = 3;</code>
       *
       * @return The bytes for description.
       */
      public com.google.protobuf.ByteString getDescriptionBytes() {
        java.lang.Object ref = description_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          description_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The description of the vulnerability.
       * </pre>
       *
       * <code>string description = 3;</code>
       *
       * @param value The description to set.
       * @return This builder for chaining.
       */
      public Builder setDescription(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }

        description_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The description of the vulnerability.
       * </pre>
       *
       * <code>string description = 3;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearDescription() {

        description_ = getDefaultInstance().getDescription();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The description of the vulnerability.
       * </pre>
       *
       * <code>string description = 3;</code>
       *
       * @param value The bytes for description to set.
       * @return This builder for chaining.
       */
      public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);

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

      private java.util.List<
              io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase>
          fixingKbs_ = java.util.Collections.emptyList();

      private void ensureFixingKbsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          fixingKbs_ =
              new java.util.ArrayList<
                  io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase>(
                  fixingKbs_);
          bitField0_ |= 0x00000001;
        }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
              io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase,
              io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase.Builder,
              io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBaseOrBuilder>
          fixingKbsBuilder_;

      /**
       *
       *
       * <pre>
       * Required. The names of the KBs which have hotfixes to mitigate this
       * vulnerability. Note that there may be multiple hotfixes (and thus
       * multiple KBs) that mitigate a given vulnerability. Currently any listed
       * kb's presence is considered a fix.
       * </pre>
       *
       * <code>
       * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
       * </code>
       */
      public java.util.List<
              io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase>
          getFixingKbsList() {
        if (fixingKbsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(fixingKbs_);
        } else {
          return fixingKbsBuilder_.getMessageList();
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The names of the KBs which have hotfixes to mitigate this
       * vulnerability. Note that there may be multiple hotfixes (and thus
       * multiple KBs) that mitigate a given vulnerability. Currently any listed
       * kb's presence is considered a fix.
       * </pre>
       *
       * <code>
       * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
       * </code>
       */
      public int getFixingKbsCount() {
        if (fixingKbsBuilder_ == null) {
          return fixingKbs_.size();
        } else {
          return fixingKbsBuilder_.getCount();
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The names of the KBs which have hotfixes to mitigate this
       * vulnerability. Note that there may be multiple hotfixes (and thus
       * multiple KBs) that mitigate a given vulnerability. Currently any listed
       * kb's presence is considered a fix.
       * </pre>
       *
       * <code>
       * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
       * </code>
       */
      public io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase
          getFixingKbs(int index) {
        if (fixingKbsBuilder_ == null) {
          return fixingKbs_.get(index);
        } else {
          return fixingKbsBuilder_.getMessage(index);
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The names of the KBs which have hotfixes to mitigate this
       * vulnerability. Note that there may be multiple hotfixes (and thus
       * multiple KBs) that mitigate a given vulnerability. Currently any listed
       * kb's presence is considered a fix.
       * </pre>
       *
       * <code>
       * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
       * </code>
       */
      public Builder setFixingKbs(
          int index,
          io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase value) {
        if (fixingKbsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFixingKbsIsMutable();
          fixingKbs_.set(index, value);
          onChanged();
        } else {
          fixingKbsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The names of the KBs which have hotfixes to mitigate this
       * vulnerability. Note that there may be multiple hotfixes (and thus
       * multiple KBs) that mitigate a given vulnerability. Currently any listed
       * kb's presence is considered a fix.
       * </pre>
       *
       * <code>
       * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
       * </code>
       */
      public Builder setFixingKbs(
          int index,
          io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase.Builder
              builderForValue) {
        if (fixingKbsBuilder_ == null) {
          ensureFixingKbsIsMutable();
          fixingKbs_.set(index, builderForValue.build());
          onChanged();
        } else {
          fixingKbsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The names of the KBs which have hotfixes to mitigate this
       * vulnerability. Note that there may be multiple hotfixes (and thus
       * multiple KBs) that mitigate a given vulnerability. Currently any listed
       * kb's presence is considered a fix.
       * </pre>
       *
       * <code>
       * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
       * </code>
       */
      public Builder addFixingKbs(
          io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase value) {
        if (fixingKbsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFixingKbsIsMutable();
          fixingKbs_.add(value);
          onChanged();
        } else {
          fixingKbsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The names of the KBs which have hotfixes to mitigate this
       * vulnerability. Note that there may be multiple hotfixes (and thus
       * multiple KBs) that mitigate a given vulnerability. Currently any listed
       * kb's presence is considered a fix.
       * </pre>
       *
       * <code>
       * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
       * </code>
       */
      public Builder addFixingKbs(
          int index,
          io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase value) {
        if (fixingKbsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFixingKbsIsMutable();
          fixingKbs_.add(index, value);
          onChanged();
        } else {
          fixingKbsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The names of the KBs which have hotfixes to mitigate this
       * vulnerability. Note that there may be multiple hotfixes (and thus
       * multiple KBs) that mitigate a given vulnerability. Currently any listed
       * kb's presence is considered a fix.
       * </pre>
       *
       * <code>
       * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
       * </code>
       */
      public Builder addFixingKbs(
          io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase.Builder
              builderForValue) {
        if (fixingKbsBuilder_ == null) {
          ensureFixingKbsIsMutable();
          fixingKbs_.add(builderForValue.build());
          onChanged();
        } else {
          fixingKbsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The names of the KBs which have hotfixes to mitigate this
       * vulnerability. Note that there may be multiple hotfixes (and thus
       * multiple KBs) that mitigate a given vulnerability. Currently any listed
       * kb's presence is considered a fix.
       * </pre>
       *
       * <code>
       * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
       * </code>
       */
      public Builder addFixingKbs(
          int index,
          io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase.Builder
              builderForValue) {
        if (fixingKbsBuilder_ == null) {
          ensureFixingKbsIsMutable();
          fixingKbs_.add(index, builderForValue.build());
          onChanged();
        } else {
          fixingKbsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The names of the KBs which have hotfixes to mitigate this
       * vulnerability. Note that there may be multiple hotfixes (and thus
       * multiple KBs) that mitigate a given vulnerability. Currently any listed
       * kb's presence is considered a fix.
       * </pre>
       *
       * <code>
       * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
       * </code>
       */
      public Builder addAllFixingKbs(
          java.lang.Iterable<
                  ? extends
                      io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase>
              values) {
        if (fixingKbsBuilder_ == null) {
          ensureFixingKbsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fixingKbs_);
          onChanged();
        } else {
          fixingKbsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The names of the KBs which have hotfixes to mitigate this
       * vulnerability. Note that there may be multiple hotfixes (and thus
       * multiple KBs) that mitigate a given vulnerability. Currently any listed
       * kb's presence is considered a fix.
       * </pre>
       *
       * <code>
       * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
       * </code>
       */
      public Builder clearFixingKbs() {
        if (fixingKbsBuilder_ == null) {
          fixingKbs_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          fixingKbsBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The names of the KBs which have hotfixes to mitigate this
       * vulnerability. Note that there may be multiple hotfixes (and thus
       * multiple KBs) that mitigate a given vulnerability. Currently any listed
       * kb's presence is considered a fix.
       * </pre>
       *
       * <code>
       * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
       * </code>
       */
      public Builder removeFixingKbs(int index) {
        if (fixingKbsBuilder_ == null) {
          ensureFixingKbsIsMutable();
          fixingKbs_.remove(index);
          onChanged();
        } else {
          fixingKbsBuilder_.remove(index);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The names of the KBs which have hotfixes to mitigate this
       * vulnerability. Note that there may be multiple hotfixes (and thus
       * multiple KBs) that mitigate a given vulnerability. Currently any listed
       * kb's presence is considered a fix.
       * </pre>
       *
       * <code>
       * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
       * </code>
       */
      public io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase.Builder
          getFixingKbsBuilder(int index) {
        return getFixingKbsFieldBuilder().getBuilder(index);
      }
      /**
       *
       *
       * <pre>
       * Required. The names of the KBs which have hotfixes to mitigate this
       * vulnerability. Note that there may be multiple hotfixes (and thus
       * multiple KBs) that mitigate a given vulnerability. Currently any listed
       * kb's presence is considered a fix.
       * </pre>
       *
       * <code>
       * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
       * </code>
       */
      public io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBaseOrBuilder
          getFixingKbsOrBuilder(int index) {
        if (fixingKbsBuilder_ == null) {
          return fixingKbs_.get(index);
        } else {
          return fixingKbsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The names of the KBs which have hotfixes to mitigate this
       * vulnerability. Note that there may be multiple hotfixes (and thus
       * multiple KBs) that mitigate a given vulnerability. Currently any listed
       * kb's presence is considered a fix.
       * </pre>
       *
       * <code>
       * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
       * </code>
       */
      public java.util.List<
              ? extends
                  io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail
                      .KnowledgeBaseOrBuilder>
          getFixingKbsOrBuilderList() {
        if (fixingKbsBuilder_ != null) {
          return fixingKbsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(fixingKbs_);
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The names of the KBs which have hotfixes to mitigate this
       * vulnerability. Note that there may be multiple hotfixes (and thus
       * multiple KBs) that mitigate a given vulnerability. Currently any listed
       * kb's presence is considered a fix.
       * </pre>
       *
       * <code>
       * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
       * </code>
       */
      public io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase.Builder
          addFixingKbsBuilder() {
        return getFixingKbsFieldBuilder()
            .addBuilder(
                io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase
                    .getDefaultInstance());
      }
      /**
       *
       *
       * <pre>
       * Required. The names of the KBs which have hotfixes to mitigate this
       * vulnerability. Note that there may be multiple hotfixes (and thus
       * multiple KBs) that mitigate a given vulnerability. Currently any listed
       * kb's presence is considered a fix.
       * </pre>
       *
       * <code>
       * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
       * </code>
       */
      public io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase.Builder
          addFixingKbsBuilder(int index) {
        return getFixingKbsFieldBuilder()
            .addBuilder(
                index,
                io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase
                    .getDefaultInstance());
      }
      /**
       *
       *
       * <pre>
       * Required. The names of the KBs which have hotfixes to mitigate this
       * vulnerability. Note that there may be multiple hotfixes (and thus
       * multiple KBs) that mitigate a given vulnerability. Currently any listed
       * kb's presence is considered a fix.
       * </pre>
       *
       * <code>
       * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase fixing_kbs = 4;
       * </code>
       */
      public java.util.List<
              io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase.Builder>
          getFixingKbsBuilderList() {
        return getFixingKbsFieldBuilder().getBuilderList();
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
              io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase,
              io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase.Builder,
              io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBaseOrBuilder>
          getFixingKbsFieldBuilder() {
        if (fixingKbsBuilder_ == null) {
          fixingKbsBuilder_ =
              new com.google.protobuf.RepeatedFieldBuilderV3<
                  io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase,
                  io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.KnowledgeBase
                      .Builder,
                  io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail
                      .KnowledgeBaseOrBuilder>(
                  fixingKbs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
          fixingKbs_ = null;
        }
        return fixingKbsBuilder_;
      }

      @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.v1beta1.vulnerability.Vulnerability.WindowsDetail)
    }

    // @@protoc_insertion_point(class_scope:grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail)
    private static final io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail();
    }

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

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

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

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

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

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

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

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

  public static final int CVSS_V3_FIELD_NUMBER = 4;
  private io.grafeas.v1beta1.vulnerability.CVSSv3 cvssV3_;
  /**
   *
   *
   * <pre>
   * The full description of the CVSSv3.
   * </pre>
   *
   * <code>.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;</code>
   *
   * @return Whether the cvssV3 field is set.
   */
  @java.lang.Override
  public boolean hasCvssV3() {
    return cvssV3_ != null;
  }
  /**
   *
   *
   * <pre>
   * The full description of the CVSSv3.
   * </pre>
   *
   * <code>.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;</code>
   *
   * @return The cvssV3.
   */
  @java.lang.Override
  public io.grafeas.v1beta1.vulnerability.CVSSv3 getCvssV3() {
    return cvssV3_ == null ? io.grafeas.v1beta1.vulnerability.CVSSv3.getDefaultInstance() : cvssV3_;
  }
  /**
   *
   *
   * <pre>
   * The full description of the CVSSv3.
   * </pre>
   *
   * <code>.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;</code>
   */
  @java.lang.Override
  public io.grafeas.v1beta1.vulnerability.CVSSv3OrBuilder getCvssV3OrBuilder() {
    return getCvssV3();
  }

  public static final int WINDOWS_DETAILS_FIELD_NUMBER = 5;
  private java.util.List<io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail>
      windowsDetails_;
  /**
   *
   *
   * <pre>
   * Windows details get their own format because the information format and
   * model don't match a normal detail. Specifically Windows updates are done as
   * patches, thus Windows vulnerabilities really are a missing package, rather
   * than a package being at an incorrect version.
   * </pre>
   *
   * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
   * </code>
   */
  @java.lang.Override
  public java.util.List<io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail>
      getWindowsDetailsList() {
    return windowsDetails_;
  }
  /**
   *
   *
   * <pre>
   * Windows details get their own format because the information format and
   * model don't match a normal detail. Specifically Windows updates are done as
   * patches, thus Windows vulnerabilities really are a missing package, rather
   * than a package being at an incorrect version.
   * </pre>
   *
   * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
   * </code>
   */
  @java.lang.Override
  public java.util.List<
          ? extends io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetailOrBuilder>
      getWindowsDetailsOrBuilderList() {
    return windowsDetails_;
  }
  /**
   *
   *
   * <pre>
   * Windows details get their own format because the information format and
   * model don't match a normal detail. Specifically Windows updates are done as
   * patches, thus Windows vulnerabilities really are a missing package, rather
   * than a package being at an incorrect version.
   * </pre>
   *
   * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
   * </code>
   */
  @java.lang.Override
  public int getWindowsDetailsCount() {
    return windowsDetails_.size();
  }
  /**
   *
   *
   * <pre>
   * Windows details get their own format because the information format and
   * model don't match a normal detail. Specifically Windows updates are done as
   * patches, thus Windows vulnerabilities really are a missing package, rather
   * than a package being at an incorrect version.
   * </pre>
   *
   * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
   * </code>
   */
  @java.lang.Override
  public io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail getWindowsDetails(int index) {
    return windowsDetails_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Windows details get their own format because the information format and
   * model don't match a normal detail. Specifically Windows updates are done as
   * patches, thus Windows vulnerabilities really are a missing package, rather
   * than a package being at an incorrect version.
   * </pre>
   *
   * <code>repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
   * </code>
   */
  @java.lang.Override
  public io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetailOrBuilder
      getWindowsDetailsOrBuilder(int index) {
    return windowsDetails_.get(index);
  }

  public static final int SOURCE_UPDATE_TIME_FIELD_NUMBER = 6;
  private com.google.protobuf.Timestamp sourceUpdateTime_;
  /**
   *
   *
   * <pre>
   * The time this information was last changed at the source. This is an
   * upstream timestamp from the underlying information source - e.g. Ubuntu
   * security tracker.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp source_update_time = 6;</code>
   *
   * @return Whether the sourceUpdateTime field is set.
   */
  @java.lang.Override
  public boolean hasSourceUpdateTime() {
    return sourceUpdateTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * The time this information was last changed at the source. This is an
   * upstream timestamp from the underlying information source - e.g. Ubuntu
   * security tracker.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp source_update_time = 6;</code>
   *
   * @return The sourceUpdateTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getSourceUpdateTime() {
    return sourceUpdateTime_ == null
        ? com.google.protobuf.Timestamp.getDefaultInstance()
        : sourceUpdateTime_;
  }
  /**
   *
   *
   * <pre>
   * The time this information was last changed at the source. This is an
   * upstream timestamp from the underlying information source - e.g. Ubuntu
   * security tracker.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp source_update_time = 6;</code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getSourceUpdateTimeOrBuilder() {
    return getSourceUpdateTime();
  }

  private byte memoizedIsInitialized = -1;

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (cvssScore_ != 0F) {
      output.writeFloat(1, cvssScore_);
    }
    if (severity_ != io.grafeas.v1beta1.vulnerability.Severity.SEVERITY_UNSPECIFIED.getNumber()) {
      output.writeEnum(2, severity_);
    }
    for (int i = 0; i < details_.size(); i++) {
      output.writeMessage(3, details_.get(i));
    }
    if (cvssV3_ != null) {
      output.writeMessage(4, getCvssV3());
    }
    for (int i = 0; i < windowsDetails_.size(); i++) {
      output.writeMessage(5, windowsDetails_.get(i));
    }
    if (sourceUpdateTime_ != null) {
      output.writeMessage(6, getSourceUpdateTime());
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (cvssScore_ != 0F) {
      size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, cvssScore_);
    }
    if (severity_ != io.grafeas.v1beta1.vulnerability.Severity.SEVERITY_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, severity_);
    }
    for (int i = 0; i < details_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, details_.get(i));
    }
    if (cvssV3_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCvssV3());
    }
    for (int i = 0; i < windowsDetails_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, windowsDetails_.get(i));
    }
    if (sourceUpdateTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSourceUpdateTime());
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

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

    if (java.lang.Float.floatToIntBits(getCvssScore())
        != java.lang.Float.floatToIntBits(other.getCvssScore())) return false;
    if (severity_ != other.severity_) return false;
    if (!getDetailsList().equals(other.getDetailsList())) return false;
    if (hasCvssV3() != other.hasCvssV3()) return false;
    if (hasCvssV3()) {
      if (!getCvssV3().equals(other.getCvssV3())) return false;
    }
    if (!getWindowsDetailsList().equals(other.getWindowsDetailsList())) return false;
    if (hasSourceUpdateTime() != other.hasSourceUpdateTime()) return false;
    if (hasSourceUpdateTime()) {
      if (!getSourceUpdateTime().equals(other.getSourceUpdateTime())) return false;
    }
    if (!unknownFields.equals(other.unknownFields)) 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) + CVSS_SCORE_FIELD_NUMBER;
    hash = (53 * hash) + java.lang.Float.floatToIntBits(getCvssScore());
    hash = (37 * hash) + SEVERITY_FIELD_NUMBER;
    hash = (53 * hash) + severity_;
    if (getDetailsCount() > 0) {
      hash = (37 * hash) + DETAILS_FIELD_NUMBER;
      hash = (53 * hash) + getDetailsList().hashCode();
    }
    if (hasCvssV3()) {
      hash = (37 * hash) + CVSS_V3_FIELD_NUMBER;
      hash = (53 * hash) + getCvssV3().hashCode();
    }
    if (getWindowsDetailsCount() > 0) {
      hash = (37 * hash) + WINDOWS_DETAILS_FIELD_NUMBER;
      hash = (53 * hash) + getWindowsDetailsList().hashCode();
    }
    if (hasSourceUpdateTime()) {
      hash = (37 * hash) + SOURCE_UPDATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getSourceUpdateTime().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  public static Builder newBuilder(io.grafeas.v1beta1.vulnerability.Vulnerability prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

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

  @java.lang.Override
  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   *
   *
   * <pre>
   * Vulnerability provides metadata about a security vulnerability in a Note.
   * </pre>
   *
   * Protobuf type {@code grafeas.v1beta1.vulnerability.Vulnerability}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:grafeas.v1beta1.vulnerability.Vulnerability)
      io.grafeas.v1beta1.vulnerability.VulnerabilityOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return io.grafeas.v1beta1.vulnerability.VulnerabilityOuterClass
          .internal_static_grafeas_v1beta1_vulnerability_Vulnerability_descriptor;
    }

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

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

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

    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
        getDetailsFieldBuilder();
        getWindowsDetailsFieldBuilder();
      }
    }

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

      severity_ = 0;

      if (detailsBuilder_ == null) {
        details_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        detailsBuilder_.clear();
      }
      if (cvssV3Builder_ == null) {
        cvssV3_ = null;
      } else {
        cvssV3_ = null;
        cvssV3Builder_ = null;
      }
      if (windowsDetailsBuilder_ == null) {
        windowsDetails_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
      } else {
        windowsDetailsBuilder_.clear();
      }
      if (sourceUpdateTimeBuilder_ == null) {
        sourceUpdateTime_ = null;
      } else {
        sourceUpdateTime_ = null;
        sourceUpdateTimeBuilder_ = null;
      }
      return this;
    }

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

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

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

    @java.lang.Override
    public io.grafeas.v1beta1.vulnerability.Vulnerability buildPartial() {
      io.grafeas.v1beta1.vulnerability.Vulnerability result =
          new io.grafeas.v1beta1.vulnerability.Vulnerability(this);
      int from_bitField0_ = bitField0_;
      result.cvssScore_ = cvssScore_;
      result.severity_ = severity_;
      if (detailsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          details_ = java.util.Collections.unmodifiableList(details_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.details_ = details_;
      } else {
        result.details_ = detailsBuilder_.build();
      }
      if (cvssV3Builder_ == null) {
        result.cvssV3_ = cvssV3_;
      } else {
        result.cvssV3_ = cvssV3Builder_.build();
      }
      if (windowsDetailsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          windowsDetails_ = java.util.Collections.unmodifiableList(windowsDetails_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.windowsDetails_ = windowsDetails_;
      } else {
        result.windowsDetails_ = windowsDetailsBuilder_.build();
      }
      if (sourceUpdateTimeBuilder_ == null) {
        result.sourceUpdateTime_ = sourceUpdateTime_;
      } else {
        result.sourceUpdateTime_ = sourceUpdateTimeBuilder_.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.v1beta1.vulnerability.Vulnerability) {
        return mergeFrom((io.grafeas.v1beta1.vulnerability.Vulnerability) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grafeas.v1beta1.vulnerability.Vulnerability other) {
      if (other == io.grafeas.v1beta1.vulnerability.Vulnerability.getDefaultInstance()) return this;
      if (other.getCvssScore() != 0F) {
        setCvssScore(other.getCvssScore());
      }
      if (other.severity_ != 0) {
        setSeverityValue(other.getSeverityValue());
      }
      if (detailsBuilder_ == null) {
        if (!other.details_.isEmpty()) {
          if (details_.isEmpty()) {
            details_ = other.details_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureDetailsIsMutable();
            details_.addAll(other.details_);
          }
          onChanged();
        }
      } else {
        if (!other.details_.isEmpty()) {
          if (detailsBuilder_.isEmpty()) {
            detailsBuilder_.dispose();
            detailsBuilder_ = null;
            details_ = other.details_;
            bitField0_ = (bitField0_ & ~0x00000001);
            detailsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getDetailsFieldBuilder()
                    : null;
          } else {
            detailsBuilder_.addAllMessages(other.details_);
          }
        }
      }
      if (other.hasCvssV3()) {
        mergeCvssV3(other.getCvssV3());
      }
      if (windowsDetailsBuilder_ == null) {
        if (!other.windowsDetails_.isEmpty()) {
          if (windowsDetails_.isEmpty()) {
            windowsDetails_ = other.windowsDetails_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureWindowsDetailsIsMutable();
            windowsDetails_.addAll(other.windowsDetails_);
          }
          onChanged();
        }
      } else {
        if (!other.windowsDetails_.isEmpty()) {
          if (windowsDetailsBuilder_.isEmpty()) {
            windowsDetailsBuilder_.dispose();
            windowsDetailsBuilder_ = null;
            windowsDetails_ = other.windowsDetails_;
            bitField0_ = (bitField0_ & ~0x00000002);
            windowsDetailsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getWindowsDetailsFieldBuilder()
                    : null;
          } else {
            windowsDetailsBuilder_.addAllMessages(other.windowsDetails_);
          }
        }
      }
      if (other.hasSourceUpdateTime()) {
        mergeSourceUpdateTime(other.getSourceUpdateTime());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

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

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      io.grafeas.v1beta1.vulnerability.Vulnerability parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grafeas.v1beta1.vulnerability.Vulnerability) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int bitField0_;

    private float cvssScore_;
    /**
     *
     *
     * <pre>
     * The CVSS score for this vulnerability.
     * </pre>
     *
     * <code>float cvss_score = 1;</code>
     *
     * @return The cvssScore.
     */
    @java.lang.Override
    public float getCvssScore() {
      return cvssScore_;
    }
    /**
     *
     *
     * <pre>
     * The CVSS score for this vulnerability.
     * </pre>
     *
     * <code>float cvss_score = 1;</code>
     *
     * @param value The cvssScore to set.
     * @return This builder for chaining.
     */
    public Builder setCvssScore(float value) {

      cvssScore_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The CVSS score for this vulnerability.
     * </pre>
     *
     * <code>float cvss_score = 1;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearCvssScore() {

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

    private int severity_ = 0;
    /**
     *
     *
     * <pre>
     * Note provider assigned impact of the vulnerability.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.Severity severity = 2;</code>
     *
     * @return The enum numeric value on the wire for severity.
     */
    @java.lang.Override
    public int getSeverityValue() {
      return severity_;
    }
    /**
     *
     *
     * <pre>
     * Note provider assigned impact of the vulnerability.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.Severity severity = 2;</code>
     *
     * @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;
    }
    /**
     *
     *
     * <pre>
     * Note provider assigned impact of the vulnerability.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.Severity severity = 2;</code>
     *
     * @return The severity.
     */
    @java.lang.Override
    public io.grafeas.v1beta1.vulnerability.Severity getSeverity() {
      @SuppressWarnings("deprecation")
      io.grafeas.v1beta1.vulnerability.Severity result =
          io.grafeas.v1beta1.vulnerability.Severity.valueOf(severity_);
      return result == null ? io.grafeas.v1beta1.vulnerability.Severity.UNRECOGNIZED : result;
    }
    /**
     *
     *
     * <pre>
     * Note provider assigned impact of the vulnerability.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.Severity severity = 2;</code>
     *
     * @param value The severity to set.
     * @return This builder for chaining.
     */
    public Builder setSeverity(io.grafeas.v1beta1.vulnerability.Severity value) {
      if (value == null) {
        throw new NullPointerException();
      }

      severity_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Note provider assigned impact of the vulnerability.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.Severity severity = 2;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearSeverity() {

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

    private java.util.List<io.grafeas.v1beta1.vulnerability.Vulnerability.Detail> details_ =
        java.util.Collections.emptyList();

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

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

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

    private com.google.protobuf.RepeatedFieldBuilderV3<
            io.grafeas.v1beta1.vulnerability.Vulnerability.Detail,
            io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.Builder,
            io.grafeas.v1beta1.vulnerability.Vulnerability.DetailOrBuilder>
        getDetailsFieldBuilder() {
      if (detailsBuilder_ == null) {
        detailsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                io.grafeas.v1beta1.vulnerability.Vulnerability.Detail,
                io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.Builder,
                io.grafeas.v1beta1.vulnerability.Vulnerability.DetailOrBuilder>(
                details_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
        details_ = null;
      }
      return detailsBuilder_;
    }

    private io.grafeas.v1beta1.vulnerability.CVSSv3 cvssV3_;
    private com.google.protobuf.SingleFieldBuilderV3<
            io.grafeas.v1beta1.vulnerability.CVSSv3,
            io.grafeas.v1beta1.vulnerability.CVSSv3.Builder,
            io.grafeas.v1beta1.vulnerability.CVSSv3OrBuilder>
        cvssV3Builder_;
    /**
     *
     *
     * <pre>
     * The full description of the CVSSv3.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;</code>
     *
     * @return Whether the cvssV3 field is set.
     */
    public boolean hasCvssV3() {
      return cvssV3Builder_ != null || cvssV3_ != null;
    }
    /**
     *
     *
     * <pre>
     * The full description of the CVSSv3.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;</code>
     *
     * @return The cvssV3.
     */
    public io.grafeas.v1beta1.vulnerability.CVSSv3 getCvssV3() {
      if (cvssV3Builder_ == null) {
        return cvssV3_ == null
            ? io.grafeas.v1beta1.vulnerability.CVSSv3.getDefaultInstance()
            : cvssV3_;
      } else {
        return cvssV3Builder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The full description of the CVSSv3.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;</code>
     */
    public Builder setCvssV3(io.grafeas.v1beta1.vulnerability.CVSSv3 value) {
      if (cvssV3Builder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        cvssV3_ = value;
        onChanged();
      } else {
        cvssV3Builder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * The full description of the CVSSv3.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;</code>
     */
    public Builder setCvssV3(io.grafeas.v1beta1.vulnerability.CVSSv3.Builder builderForValue) {
      if (cvssV3Builder_ == null) {
        cvssV3_ = builderForValue.build();
        onChanged();
      } else {
        cvssV3Builder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * The full description of the CVSSv3.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;</code>
     */
    public Builder mergeCvssV3(io.grafeas.v1beta1.vulnerability.CVSSv3 value) {
      if (cvssV3Builder_ == null) {
        if (cvssV3_ != null) {
          cvssV3_ =
              io.grafeas.v1beta1.vulnerability.CVSSv3.newBuilder(cvssV3_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          cvssV3_ = value;
        }
        onChanged();
      } else {
        cvssV3Builder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * The full description of the CVSSv3.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;</code>
     */
    public Builder clearCvssV3() {
      if (cvssV3Builder_ == null) {
        cvssV3_ = null;
        onChanged();
      } else {
        cvssV3_ = null;
        cvssV3Builder_ = null;
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * The full description of the CVSSv3.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;</code>
     */
    public io.grafeas.v1beta1.vulnerability.CVSSv3.Builder getCvssV3Builder() {

      onChanged();
      return getCvssV3FieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The full description of the CVSSv3.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;</code>
     */
    public io.grafeas.v1beta1.vulnerability.CVSSv3OrBuilder getCvssV3OrBuilder() {
      if (cvssV3Builder_ != null) {
        return cvssV3Builder_.getMessageOrBuilder();
      } else {
        return cvssV3_ == null
            ? io.grafeas.v1beta1.vulnerability.CVSSv3.getDefaultInstance()
            : cvssV3_;
      }
    }
    /**
     *
     *
     * <pre>
     * The full description of the CVSSv3.
     * </pre>
     *
     * <code>.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            io.grafeas.v1beta1.vulnerability.CVSSv3,
            io.grafeas.v1beta1.vulnerability.CVSSv3.Builder,
            io.grafeas.v1beta1.vulnerability.CVSSv3OrBuilder>
        getCvssV3FieldBuilder() {
      if (cvssV3Builder_ == null) {
        cvssV3Builder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                io.grafeas.v1beta1.vulnerability.CVSSv3,
                io.grafeas.v1beta1.vulnerability.CVSSv3.Builder,
                io.grafeas.v1beta1.vulnerability.CVSSv3OrBuilder>(
                getCvssV3(), getParentForChildren(), isClean());
        cvssV3_ = null;
      }
      return cvssV3Builder_;
    }

    private java.util.List<io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail>
        windowsDetails_ = java.util.Collections.emptyList();

    private void ensureWindowsDetailsIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        windowsDetails_ =
            new java.util.ArrayList<io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail>(
                windowsDetails_);
        bitField0_ |= 0x00000002;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail,
            io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.Builder,
            io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetailOrBuilder>
        windowsDetailsBuilder_;

    /**
     *
     *
     * <pre>
     * Windows details get their own format because the information format and
     * model don't match a normal detail. Specifically Windows updates are done as
     * patches, thus Windows vulnerabilities really are a missing package, rather
     * than a package being at an incorrect version.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
     * </code>
     */
    public java.util.List<io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail>
        getWindowsDetailsList() {
      if (windowsDetailsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(windowsDetails_);
      } else {
        return windowsDetailsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Windows details get their own format because the information format and
     * model don't match a normal detail. Specifically Windows updates are done as
     * patches, thus Windows vulnerabilities really are a missing package, rather
     * than a package being at an incorrect version.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
     * </code>
     */
    public int getWindowsDetailsCount() {
      if (windowsDetailsBuilder_ == null) {
        return windowsDetails_.size();
      } else {
        return windowsDetailsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Windows details get their own format because the information format and
     * model don't match a normal detail. Specifically Windows updates are done as
     * patches, thus Windows vulnerabilities really are a missing package, rather
     * than a package being at an incorrect version.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
     * </code>
     */
    public io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail getWindowsDetails(
        int index) {
      if (windowsDetailsBuilder_ == null) {
        return windowsDetails_.get(index);
      } else {
        return windowsDetailsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Windows details get their own format because the information format and
     * model don't match a normal detail. Specifically Windows updates are done as
     * patches, thus Windows vulnerabilities really are a missing package, rather
     * than a package being at an incorrect version.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
     * </code>
     */
    public Builder setWindowsDetails(
        int index, io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail value) {
      if (windowsDetailsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureWindowsDetailsIsMutable();
        windowsDetails_.set(index, value);
        onChanged();
      } else {
        windowsDetailsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Windows details get their own format because the information format and
     * model don't match a normal detail. Specifically Windows updates are done as
     * patches, thus Windows vulnerabilities really are a missing package, rather
     * than a package being at an incorrect version.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
     * </code>
     */
    public Builder setWindowsDetails(
        int index,
        io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.Builder builderForValue) {
      if (windowsDetailsBuilder_ == null) {
        ensureWindowsDetailsIsMutable();
        windowsDetails_.set(index, builderForValue.build());
        onChanged();
      } else {
        windowsDetailsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Windows details get their own format because the information format and
     * model don't match a normal detail. Specifically Windows updates are done as
     * patches, thus Windows vulnerabilities really are a missing package, rather
     * than a package being at an incorrect version.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
     * </code>
     */
    public Builder addWindowsDetails(
        io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail value) {
      if (windowsDetailsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureWindowsDetailsIsMutable();
        windowsDetails_.add(value);
        onChanged();
      } else {
        windowsDetailsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Windows details get their own format because the information format and
     * model don't match a normal detail. Specifically Windows updates are done as
     * patches, thus Windows vulnerabilities really are a missing package, rather
     * than a package being at an incorrect version.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
     * </code>
     */
    public Builder addWindowsDetails(
        int index, io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail value) {
      if (windowsDetailsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureWindowsDetailsIsMutable();
        windowsDetails_.add(index, value);
        onChanged();
      } else {
        windowsDetailsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Windows details get their own format because the information format and
     * model don't match a normal detail. Specifically Windows updates are done as
     * patches, thus Windows vulnerabilities really are a missing package, rather
     * than a package being at an incorrect version.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
     * </code>
     */
    public Builder addWindowsDetails(
        io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.Builder builderForValue) {
      if (windowsDetailsBuilder_ == null) {
        ensureWindowsDetailsIsMutable();
        windowsDetails_.add(builderForValue.build());
        onChanged();
      } else {
        windowsDetailsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Windows details get their own format because the information format and
     * model don't match a normal detail. Specifically Windows updates are done as
     * patches, thus Windows vulnerabilities really are a missing package, rather
     * than a package being at an incorrect version.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
     * </code>
     */
    public Builder addWindowsDetails(
        int index,
        io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.Builder builderForValue) {
      if (windowsDetailsBuilder_ == null) {
        ensureWindowsDetailsIsMutable();
        windowsDetails_.add(index, builderForValue.build());
        onChanged();
      } else {
        windowsDetailsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Windows details get their own format because the information format and
     * model don't match a normal detail. Specifically Windows updates are done as
     * patches, thus Windows vulnerabilities really are a missing package, rather
     * than a package being at an incorrect version.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
     * </code>
     */
    public Builder addAllWindowsDetails(
        java.lang.Iterable<? extends io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail>
            values) {
      if (windowsDetailsBuilder_ == null) {
        ensureWindowsDetailsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, windowsDetails_);
        onChanged();
      } else {
        windowsDetailsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Windows details get their own format because the information format and
     * model don't match a normal detail. Specifically Windows updates are done as
     * patches, thus Windows vulnerabilities really are a missing package, rather
     * than a package being at an incorrect version.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
     * </code>
     */
    public Builder clearWindowsDetails() {
      if (windowsDetailsBuilder_ == null) {
        windowsDetails_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        windowsDetailsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Windows details get their own format because the information format and
     * model don't match a normal detail. Specifically Windows updates are done as
     * patches, thus Windows vulnerabilities really are a missing package, rather
     * than a package being at an incorrect version.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
     * </code>
     */
    public Builder removeWindowsDetails(int index) {
      if (windowsDetailsBuilder_ == null) {
        ensureWindowsDetailsIsMutable();
        windowsDetails_.remove(index);
        onChanged();
      } else {
        windowsDetailsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Windows details get their own format because the information format and
     * model don't match a normal detail. Specifically Windows updates are done as
     * patches, thus Windows vulnerabilities really are a missing package, rather
     * than a package being at an incorrect version.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
     * </code>
     */
    public io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.Builder
        getWindowsDetailsBuilder(int index) {
      return getWindowsDetailsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Windows details get their own format because the information format and
     * model don't match a normal detail. Specifically Windows updates are done as
     * patches, thus Windows vulnerabilities really are a missing package, rather
     * than a package being at an incorrect version.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
     * </code>
     */
    public io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetailOrBuilder
        getWindowsDetailsOrBuilder(int index) {
      if (windowsDetailsBuilder_ == null) {
        return windowsDetails_.get(index);
      } else {
        return windowsDetailsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Windows details get their own format because the information format and
     * model don't match a normal detail. Specifically Windows updates are done as
     * patches, thus Windows vulnerabilities really are a missing package, rather
     * than a package being at an incorrect version.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
     * </code>
     */
    public java.util.List<
            ? extends io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetailOrBuilder>
        getWindowsDetailsOrBuilderList() {
      if (windowsDetailsBuilder_ != null) {
        return windowsDetailsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(windowsDetails_);
      }
    }
    /**
     *
     *
     * <pre>
     * Windows details get their own format because the information format and
     * model don't match a normal detail. Specifically Windows updates are done as
     * patches, thus Windows vulnerabilities really are a missing package, rather
     * than a package being at an incorrect version.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
     * </code>
     */
    public io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.Builder
        addWindowsDetailsBuilder() {
      return getWindowsDetailsFieldBuilder()
          .addBuilder(
              io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Windows details get their own format because the information format and
     * model don't match a normal detail. Specifically Windows updates are done as
     * patches, thus Windows vulnerabilities really are a missing package, rather
     * than a package being at an incorrect version.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
     * </code>
     */
    public io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.Builder
        addWindowsDetailsBuilder(int index) {
      return getWindowsDetailsFieldBuilder()
          .addBuilder(
              index,
              io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Windows details get their own format because the information format and
     * model don't match a normal detail. Specifically Windows updates are done as
     * patches, thus Windows vulnerabilities really are a missing package, rather
     * than a package being at an incorrect version.
     * </pre>
     *
     * <code>
     * repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;
     * </code>
     */
    public java.util.List<io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.Builder>
        getWindowsDetailsBuilderList() {
      return getWindowsDetailsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail,
            io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.Builder,
            io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetailOrBuilder>
        getWindowsDetailsFieldBuilder() {
      if (windowsDetailsBuilder_ == null) {
        windowsDetailsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail,
                io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail.Builder,
                io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetailOrBuilder>(
                windowsDetails_,
                ((bitField0_ & 0x00000002) != 0),
                getParentForChildren(),
                isClean());
        windowsDetails_ = null;
      }
      return windowsDetailsBuilder_;
    }

    private com.google.protobuf.Timestamp sourceUpdateTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        sourceUpdateTimeBuilder_;
    /**
     *
     *
     * <pre>
     * The time this information was last changed at the source. This is an
     * upstream timestamp from the underlying information source - e.g. Ubuntu
     * security tracker.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp source_update_time = 6;</code>
     *
     * @return Whether the sourceUpdateTime field is set.
     */
    public boolean hasSourceUpdateTime() {
      return sourceUpdateTimeBuilder_ != null || sourceUpdateTime_ != null;
    }
    /**
     *
     *
     * <pre>
     * The time this information was last changed at the source. This is an
     * upstream timestamp from the underlying information source - e.g. Ubuntu
     * security tracker.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp source_update_time = 6;</code>
     *
     * @return The sourceUpdateTime.
     */
    public com.google.protobuf.Timestamp getSourceUpdateTime() {
      if (sourceUpdateTimeBuilder_ == null) {
        return sourceUpdateTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : sourceUpdateTime_;
      } else {
        return sourceUpdateTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The time this information was last changed at the source. This is an
     * upstream timestamp from the underlying information source - e.g. Ubuntu
     * security tracker.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp source_update_time = 6;</code>
     */
    public Builder setSourceUpdateTime(com.google.protobuf.Timestamp value) {
      if (sourceUpdateTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        sourceUpdateTime_ = value;
        onChanged();
      } else {
        sourceUpdateTimeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * The time this information was last changed at the source. This is an
     * upstream timestamp from the underlying information source - e.g. Ubuntu
     * security tracker.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp source_update_time = 6;</code>
     */
    public Builder setSourceUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (sourceUpdateTimeBuilder_ == null) {
        sourceUpdateTime_ = builderForValue.build();
        onChanged();
      } else {
        sourceUpdateTimeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * The time this information was last changed at the source. This is an
     * upstream timestamp from the underlying information source - e.g. Ubuntu
     * security tracker.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp source_update_time = 6;</code>
     */
    public Builder mergeSourceUpdateTime(com.google.protobuf.Timestamp value) {
      if (sourceUpdateTimeBuilder_ == null) {
        if (sourceUpdateTime_ != null) {
          sourceUpdateTime_ =
              com.google.protobuf.Timestamp.newBuilder(sourceUpdateTime_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          sourceUpdateTime_ = value;
        }
        onChanged();
      } else {
        sourceUpdateTimeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * The time this information was last changed at the source. This is an
     * upstream timestamp from the underlying information source - e.g. Ubuntu
     * security tracker.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp source_update_time = 6;</code>
     */
    public Builder clearSourceUpdateTime() {
      if (sourceUpdateTimeBuilder_ == null) {
        sourceUpdateTime_ = null;
        onChanged();
      } else {
        sourceUpdateTime_ = null;
        sourceUpdateTimeBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * The time this information was last changed at the source. This is an
     * upstream timestamp from the underlying information source - e.g. Ubuntu
     * security tracker.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp source_update_time = 6;</code>
     */
    public com.google.protobuf.Timestamp.Builder getSourceUpdateTimeBuilder() {

      onChanged();
      return getSourceUpdateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The time this information was last changed at the source. This is an
     * upstream timestamp from the underlying information source - e.g. Ubuntu
     * security tracker.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp source_update_time = 6;</code>
     */
    public com.google.protobuf.TimestampOrBuilder getSourceUpdateTimeOrBuilder() {
      if (sourceUpdateTimeBuilder_ != null) {
        return sourceUpdateTimeBuilder_.getMessageOrBuilder();
      } else {
        return sourceUpdateTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : sourceUpdateTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * The time this information was last changed at the source. This is an
     * upstream timestamp from the underlying information source - e.g. Ubuntu
     * security tracker.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp source_update_time = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getSourceUpdateTimeFieldBuilder() {
      if (sourceUpdateTimeBuilder_ == null) {
        sourceUpdateTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getSourceUpdateTime(), getParentForChildren(), isClean());
        sourceUpdateTime_ = null;
      }
      return sourceUpdateTimeBuilder_;
    }

    @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.v1beta1.vulnerability.Vulnerability)
  }

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

  static {
    DEFAULT_INSTANCE = new io.grafeas.v1beta1.vulnerability.Vulnerability();
  }

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

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

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

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

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