Class Vulnerability.Detail.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Vulnerability.Detail.Builder>
io.grafeas.v1beta1.vulnerability.Vulnerability.Detail.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Vulnerability.DetailOrBuilder, Cloneable
Enclosing class:
Vulnerability.Detail

public static final class Vulnerability.Detail.Builder extends com.google.protobuf.GeneratedMessage.Builder<Vulnerability.Detail.Builder> implements Vulnerability.DetailOrBuilder
 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
 
Protobuf type grafeas.v1beta1.vulnerability.Vulnerability.Detail
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Vulnerability.Detail.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Vulnerability.Detail.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Vulnerability.Detail.Builder>
    • getDefaultInstanceForType

      public Vulnerability.Detail getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Vulnerability.Detail build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Vulnerability.Detail buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Vulnerability.Detail.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Vulnerability.Detail.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Vulnerability.Detail.Builder>
    • mergeFrom

      public Vulnerability.Detail.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Vulnerability.Detail.Builder>
      Throws:
      IOException
    • getCpeUri

      public String getCpeUri()
       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.
       
      string cpe_uri = 1;
      Specified by:
      getCpeUri in interface Vulnerability.DetailOrBuilder
      Returns:
      The cpeUri.
    • getCpeUriBytes

      public com.google.protobuf.ByteString getCpeUriBytes()
       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.
       
      string cpe_uri = 1;
      Specified by:
      getCpeUriBytes in interface Vulnerability.DetailOrBuilder
      Returns:
      The bytes for cpeUri.
    • setCpeUri

      public Vulnerability.Detail.Builder setCpeUri(String value)
       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.
       
      string cpe_uri = 1;
      Parameters:
      value - The cpeUri to set.
      Returns:
      This builder for chaining.
    • clearCpeUri

      public Vulnerability.Detail.Builder clearCpeUri()
       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.
       
      string cpe_uri = 1;
      Returns:
      This builder for chaining.
    • setCpeUriBytes

      public Vulnerability.Detail.Builder setCpeUriBytes(com.google.protobuf.ByteString value)
       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.
       
      string cpe_uri = 1;
      Parameters:
      value - The bytes for cpeUri to set.
      Returns:
      This builder for chaining.
    • getPackage

      public String getPackage()
       Required. The name of the package where the vulnerability was found.
       
      string package = 2;
      Specified by:
      getPackage in interface Vulnerability.DetailOrBuilder
      Returns:
      The package.
    • getPackageBytes

      public com.google.protobuf.ByteString getPackageBytes()
       Required. The name of the package where the vulnerability was found.
       
      string package = 2;
      Specified by:
      getPackageBytes in interface Vulnerability.DetailOrBuilder
      Returns:
      The bytes for package.
    • setPackage

      public Vulnerability.Detail.Builder setPackage(String value)
       Required. The name of the package where the vulnerability was found.
       
      string package = 2;
      Parameters:
      value - The package to set.
      Returns:
      This builder for chaining.
    • clearPackage

      public Vulnerability.Detail.Builder clearPackage()
       Required. The name of the package where the vulnerability was found.
       
      string package = 2;
      Returns:
      This builder for chaining.
    • setPackageBytes

      public Vulnerability.Detail.Builder setPackageBytes(com.google.protobuf.ByteString value)
       Required. The name of the package where the vulnerability was found.
       
      string package = 2;
      Parameters:
      value - The bytes for package to set.
      Returns:
      This builder for chaining.
    • hasMinAffectedVersion

      public boolean hasMinAffectedVersion()
       The min version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version min_affected_version = 3;
      Specified by:
      hasMinAffectedVersion in interface Vulnerability.DetailOrBuilder
      Returns:
      Whether the minAffectedVersion field is set.
    • getMinAffectedVersion

      public Version getMinAffectedVersion()
       The min version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version min_affected_version = 3;
      Specified by:
      getMinAffectedVersion in interface Vulnerability.DetailOrBuilder
      Returns:
      The minAffectedVersion.
    • setMinAffectedVersion

      public Vulnerability.Detail.Builder setMinAffectedVersion(Version value)
       The min version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version min_affected_version = 3;
    • setMinAffectedVersion

      public Vulnerability.Detail.Builder setMinAffectedVersion(Version.Builder builderForValue)
       The min version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version min_affected_version = 3;
    • mergeMinAffectedVersion

      public Vulnerability.Detail.Builder mergeMinAffectedVersion(Version value)
       The min version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version min_affected_version = 3;
    • clearMinAffectedVersion

      public Vulnerability.Detail.Builder clearMinAffectedVersion()
       The min version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version min_affected_version = 3;
    • getMinAffectedVersionBuilder

      public Version.Builder getMinAffectedVersionBuilder()
       The min version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version min_affected_version = 3;
    • getMinAffectedVersionOrBuilder

      public VersionOrBuilder getMinAffectedVersionOrBuilder()
       The min version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version min_affected_version = 3;
      Specified by:
      getMinAffectedVersionOrBuilder in interface Vulnerability.DetailOrBuilder
    • hasMaxAffectedVersion

      public boolean hasMaxAffectedVersion()
       The max version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version max_affected_version = 4;
      Specified by:
      hasMaxAffectedVersion in interface Vulnerability.DetailOrBuilder
      Returns:
      Whether the maxAffectedVersion field is set.
    • getMaxAffectedVersion

      public Version getMaxAffectedVersion()
       The max version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version max_affected_version = 4;
      Specified by:
      getMaxAffectedVersion in interface Vulnerability.DetailOrBuilder
      Returns:
      The maxAffectedVersion.
    • setMaxAffectedVersion

      public Vulnerability.Detail.Builder setMaxAffectedVersion(Version value)
       The max version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version max_affected_version = 4;
    • setMaxAffectedVersion

      public Vulnerability.Detail.Builder setMaxAffectedVersion(Version.Builder builderForValue)
       The max version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version max_affected_version = 4;
    • mergeMaxAffectedVersion

      public Vulnerability.Detail.Builder mergeMaxAffectedVersion(Version value)
       The max version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version max_affected_version = 4;
    • clearMaxAffectedVersion

      public Vulnerability.Detail.Builder clearMaxAffectedVersion()
       The max version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version max_affected_version = 4;
    • getMaxAffectedVersionBuilder

      public Version.Builder getMaxAffectedVersionBuilder()
       The max version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version max_affected_version = 4;
    • getMaxAffectedVersionOrBuilder

      public VersionOrBuilder getMaxAffectedVersionOrBuilder()
       The max version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version max_affected_version = 4;
      Specified by:
      getMaxAffectedVersionOrBuilder in interface Vulnerability.DetailOrBuilder
    • getSeverityName

      public String getSeverityName()
       The severity (eg: distro assigned severity) for this vulnerability.
       
      string severity_name = 5;
      Specified by:
      getSeverityName in interface Vulnerability.DetailOrBuilder
      Returns:
      The severityName.
    • getSeverityNameBytes

      public com.google.protobuf.ByteString getSeverityNameBytes()
       The severity (eg: distro assigned severity) for this vulnerability.
       
      string severity_name = 5;
      Specified by:
      getSeverityNameBytes in interface Vulnerability.DetailOrBuilder
      Returns:
      The bytes for severityName.
    • setSeverityName

      public Vulnerability.Detail.Builder setSeverityName(String value)
       The severity (eg: distro assigned severity) for this vulnerability.
       
      string severity_name = 5;
      Parameters:
      value - The severityName to set.
      Returns:
      This builder for chaining.
    • clearSeverityName

      public Vulnerability.Detail.Builder clearSeverityName()
       The severity (eg: distro assigned severity) for this vulnerability.
       
      string severity_name = 5;
      Returns:
      This builder for chaining.
    • setSeverityNameBytes

      public Vulnerability.Detail.Builder setSeverityNameBytes(com.google.protobuf.ByteString value)
       The severity (eg: distro assigned severity) for this vulnerability.
       
      string severity_name = 5;
      Parameters:
      value - The bytes for severityName to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       A vendor-specific description of this note.
       
      string description = 6;
      Specified by:
      getDescription in interface Vulnerability.DetailOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       A vendor-specific description of this note.
       
      string description = 6;
      Specified by:
      getDescriptionBytes in interface Vulnerability.DetailOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Vulnerability.Detail.Builder setDescription(String value)
       A vendor-specific description of this note.
       
      string description = 6;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Vulnerability.Detail.Builder clearDescription()
       A vendor-specific description of this note.
       
      string description = 6;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Vulnerability.Detail.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       A vendor-specific description of this note.
       
      string description = 6;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasFixedLocation

      public boolean hasFixedLocation()
       The fix for this specific package version.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;
      Specified by:
      hasFixedLocation in interface Vulnerability.DetailOrBuilder
      Returns:
      Whether the fixedLocation field is set.
    • getFixedLocation

      public VulnerabilityLocation getFixedLocation()
       The fix for this specific package version.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;
      Specified by:
      getFixedLocation in interface Vulnerability.DetailOrBuilder
      Returns:
      The fixedLocation.
    • setFixedLocation

      public Vulnerability.Detail.Builder setFixedLocation(VulnerabilityLocation value)
       The fix for this specific package version.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;
    • setFixedLocation

      public Vulnerability.Detail.Builder setFixedLocation(VulnerabilityLocation.Builder builderForValue)
       The fix for this specific package version.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;
    • mergeFixedLocation

      public Vulnerability.Detail.Builder mergeFixedLocation(VulnerabilityLocation value)
       The fix for this specific package version.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;
    • clearFixedLocation

      public Vulnerability.Detail.Builder clearFixedLocation()
       The fix for this specific package version.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;
    • getFixedLocationBuilder

      public VulnerabilityLocation.Builder getFixedLocationBuilder()
       The fix for this specific package version.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;
    • getFixedLocationOrBuilder

      public VulnerabilityLocationOrBuilder getFixedLocationOrBuilder()
       The fix for this specific package version.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;
      Specified by:
      getFixedLocationOrBuilder in interface Vulnerability.DetailOrBuilder
    • getPackageType

      public String getPackageType()
       The type of package; whether native or non native(ruby gems, node.js
       packages etc).
       
      string package_type = 8;
      Specified by:
      getPackageType in interface Vulnerability.DetailOrBuilder
      Returns:
      The packageType.
    • getPackageTypeBytes

      public com.google.protobuf.ByteString getPackageTypeBytes()
       The type of package; whether native or non native(ruby gems, node.js
       packages etc).
       
      string package_type = 8;
      Specified by:
      getPackageTypeBytes in interface Vulnerability.DetailOrBuilder
      Returns:
      The bytes for packageType.
    • setPackageType

      public Vulnerability.Detail.Builder setPackageType(String value)
       The type of package; whether native or non native(ruby gems, node.js
       packages etc).
       
      string package_type = 8;
      Parameters:
      value - The packageType to set.
      Returns:
      This builder for chaining.
    • clearPackageType

      public Vulnerability.Detail.Builder clearPackageType()
       The type of package; whether native or non native(ruby gems, node.js
       packages etc).
       
      string package_type = 8;
      Returns:
      This builder for chaining.
    • setPackageTypeBytes

      public Vulnerability.Detail.Builder setPackageTypeBytes(com.google.protobuf.ByteString value)
       The type of package; whether native or non native(ruby gems, node.js
       packages etc).
       
      string package_type = 8;
      Parameters:
      value - The bytes for packageType to set.
      Returns:
      This builder for chaining.
    • getIsObsolete

      public boolean getIsObsolete()
       Whether this detail is obsolete. Occurrences are expected not to point to
       obsolete details.
       
      bool is_obsolete = 9;
      Specified by:
      getIsObsolete in interface Vulnerability.DetailOrBuilder
      Returns:
      The isObsolete.
    • setIsObsolete

      public Vulnerability.Detail.Builder setIsObsolete(boolean value)
       Whether this detail is obsolete. Occurrences are expected not to point to
       obsolete details.
       
      bool is_obsolete = 9;
      Parameters:
      value - The isObsolete to set.
      Returns:
      This builder for chaining.
    • clearIsObsolete

      public Vulnerability.Detail.Builder clearIsObsolete()
       Whether this detail is obsolete. Occurrences are expected not to point to
       obsolete details.
       
      bool is_obsolete = 9;
      Returns:
      This builder for chaining.
    • hasSourceUpdateTime

      public boolean hasSourceUpdateTime()
       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.
       
      .google.protobuf.Timestamp source_update_time = 10;
      Specified by:
      hasSourceUpdateTime in interface Vulnerability.DetailOrBuilder
      Returns:
      Whether the sourceUpdateTime field is set.
    • getSourceUpdateTime

      public com.google.protobuf.Timestamp getSourceUpdateTime()
       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.
       
      .google.protobuf.Timestamp source_update_time = 10;
      Specified by:
      getSourceUpdateTime in interface Vulnerability.DetailOrBuilder
      Returns:
      The sourceUpdateTime.
    • setSourceUpdateTime

      public Vulnerability.Detail.Builder setSourceUpdateTime(com.google.protobuf.Timestamp value)
       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.
       
      .google.protobuf.Timestamp source_update_time = 10;
    • setSourceUpdateTime

      public Vulnerability.Detail.Builder setSourceUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       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.
       
      .google.protobuf.Timestamp source_update_time = 10;
    • mergeSourceUpdateTime

      public Vulnerability.Detail.Builder mergeSourceUpdateTime(com.google.protobuf.Timestamp value)
       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.
       
      .google.protobuf.Timestamp source_update_time = 10;
    • clearSourceUpdateTime

      public Vulnerability.Detail.Builder clearSourceUpdateTime()
       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.
       
      .google.protobuf.Timestamp source_update_time = 10;
    • getSourceUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getSourceUpdateTimeBuilder()
       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.
       
      .google.protobuf.Timestamp source_update_time = 10;
    • getSourceUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getSourceUpdateTimeOrBuilder()
       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.
       
      .google.protobuf.Timestamp source_update_time = 10;
      Specified by:
      getSourceUpdateTimeOrBuilder in interface Vulnerability.DetailOrBuilder