Class PackageIssue.Builder

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

public static final class PackageIssue.Builder extends com.google.protobuf.GeneratedMessage.Builder<PackageIssue.Builder> implements PackageIssueOrBuilder
 This message wraps a location affected by a vulnerability and its
 associated fix (if one is available).
 
Protobuf type grafeas.v1beta1.vulnerability.PackageIssue
  • 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<PackageIssue.Builder>
    • clear

      public PackageIssue.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<PackageIssue.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<PackageIssue.Builder>
    • getDefaultInstanceForType

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

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

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

      public PackageIssue.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<PackageIssue.Builder>
    • mergeFrom

      public PackageIssue.Builder mergeFrom(PackageIssue other)
    • isInitialized

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

      public PackageIssue.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<PackageIssue.Builder>
      Throws:
      IOException
    • hasAffectedLocation

      public boolean hasAffectedLocation()
       Required. The location of the vulnerability.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
      Specified by:
      hasAffectedLocation in interface PackageIssueOrBuilder
      Returns:
      Whether the affectedLocation field is set.
    • getAffectedLocation

      public VulnerabilityLocation getAffectedLocation()
       Required. The location of the vulnerability.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
      Specified by:
      getAffectedLocation in interface PackageIssueOrBuilder
      Returns:
      The affectedLocation.
    • setAffectedLocation

      public PackageIssue.Builder setAffectedLocation(VulnerabilityLocation value)
       Required. The location of the vulnerability.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
    • setAffectedLocation

      public PackageIssue.Builder setAffectedLocation(VulnerabilityLocation.Builder builderForValue)
       Required. The location of the vulnerability.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
    • mergeAffectedLocation

      public PackageIssue.Builder mergeAffectedLocation(VulnerabilityLocation value)
       Required. The location of the vulnerability.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
    • clearAffectedLocation

      public PackageIssue.Builder clearAffectedLocation()
       Required. The location of the vulnerability.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
    • getAffectedLocationBuilder

      public VulnerabilityLocation.Builder getAffectedLocationBuilder()
       Required. The location of the vulnerability.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
    • getAffectedLocationOrBuilder

      public VulnerabilityLocationOrBuilder getAffectedLocationOrBuilder()
       Required. The location of the vulnerability.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
      Specified by:
      getAffectedLocationOrBuilder in interface PackageIssueOrBuilder
    • hasFixedLocation

      public boolean hasFixedLocation()
       The location of the available fix for vulnerability.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;
      Specified by:
      hasFixedLocation in interface PackageIssueOrBuilder
      Returns:
      Whether the fixedLocation field is set.
    • getFixedLocation

      public VulnerabilityLocation getFixedLocation()
       The location of the available fix for vulnerability.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;
      Specified by:
      getFixedLocation in interface PackageIssueOrBuilder
      Returns:
      The fixedLocation.
    • setFixedLocation

      public PackageIssue.Builder setFixedLocation(VulnerabilityLocation value)
       The location of the available fix for vulnerability.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;
    • setFixedLocation

      public PackageIssue.Builder setFixedLocation(VulnerabilityLocation.Builder builderForValue)
       The location of the available fix for vulnerability.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;
    • mergeFixedLocation

      public PackageIssue.Builder mergeFixedLocation(VulnerabilityLocation value)
       The location of the available fix for vulnerability.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;
    • clearFixedLocation

      public PackageIssue.Builder clearFixedLocation()
       The location of the available fix for vulnerability.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;
    • getFixedLocationBuilder

      public VulnerabilityLocation.Builder getFixedLocationBuilder()
       The location of the available fix for vulnerability.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;
    • getFixedLocationOrBuilder

      public VulnerabilityLocationOrBuilder getFixedLocationOrBuilder()
       The location of the available fix for vulnerability.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;
      Specified by:
      getFixedLocationOrBuilder in interface PackageIssueOrBuilder
    • getSeverityName

      public String getSeverityName()
       Deprecated, use Details.effective_severity instead
       The severity (e.g., distro assigned severity) for this vulnerability.
       
      string severity_name = 3;
      Specified by:
      getSeverityName in interface PackageIssueOrBuilder
      Returns:
      The severityName.
    • getSeverityNameBytes

      public com.google.protobuf.ByteString getSeverityNameBytes()
       Deprecated, use Details.effective_severity instead
       The severity (e.g., distro assigned severity) for this vulnerability.
       
      string severity_name = 3;
      Specified by:
      getSeverityNameBytes in interface PackageIssueOrBuilder
      Returns:
      The bytes for severityName.
    • setSeverityName

      public PackageIssue.Builder setSeverityName(String value)
       Deprecated, use Details.effective_severity instead
       The severity (e.g., distro assigned severity) for this vulnerability.
       
      string severity_name = 3;
      Parameters:
      value - The severityName to set.
      Returns:
      This builder for chaining.
    • clearSeverityName

      public PackageIssue.Builder clearSeverityName()
       Deprecated, use Details.effective_severity instead
       The severity (e.g., distro assigned severity) for this vulnerability.
       
      string severity_name = 3;
      Returns:
      This builder for chaining.
    • setSeverityNameBytes

      public PackageIssue.Builder setSeverityNameBytes(com.google.protobuf.ByteString value)
       Deprecated, use Details.effective_severity instead
       The severity (e.g., distro assigned severity) for this vulnerability.
       
      string severity_name = 3;
      Parameters:
      value - The bytes for severityName to set.
      Returns:
      This builder for chaining.