Class Details.Builder

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

public static final class Details.Builder extends com.google.protobuf.GeneratedMessage.Builder<Details.Builder> implements DetailsOrBuilder
 Details of a vulnerability Occurrence.
 
Protobuf type grafeas.v1beta1.vulnerability.Details
  • 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<Details.Builder>
    • clear

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

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

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

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

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

      public Details.Builder mergeFrom(Details other)
    • isInitialized

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

      public Details.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<Details.Builder>
      Throws:
      IOException
    • getType

      public String getType()
       The type of package; whether native or non native(ruby gems, node.js
       packages etc)
       
      string type = 1;
      Specified by:
      getType in interface DetailsOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       The type of package; whether native or non native(ruby gems, node.js
       packages etc)
       
      string type = 1;
      Specified by:
      getTypeBytes in interface DetailsOrBuilder
      Returns:
      The bytes for type.
    • setType

      public Details.Builder setType(String value)
       The type of package; whether native or non native(ruby gems, node.js
       packages etc)
       
      string type = 1;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Details.Builder clearType()
       The type of package; whether native or non native(ruby gems, node.js
       packages etc)
       
      string type = 1;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public Details.Builder setTypeBytes(com.google.protobuf.ByteString value)
       The type of package; whether native or non native(ruby gems, node.js
       packages etc)
       
      string type = 1;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • getSeverityValue

      public int getSeverityValue()
       Output only. The note provider assigned Severity of the vulnerability.
       
      .grafeas.v1beta1.vulnerability.Severity severity = 2;
      Specified by:
      getSeverityValue in interface DetailsOrBuilder
      Returns:
      The enum numeric value on the wire for severity.
    • setSeverityValue

      public Details.Builder setSeverityValue(int value)
       Output only. The note provider assigned Severity of the vulnerability.
       
      .grafeas.v1beta1.vulnerability.Severity severity = 2;
      Parameters:
      value - The enum numeric value on the wire for severity to set.
      Returns:
      This builder for chaining.
    • getSeverity

      public Severity getSeverity()
       Output only. The note provider assigned Severity of the vulnerability.
       
      .grafeas.v1beta1.vulnerability.Severity severity = 2;
      Specified by:
      getSeverity in interface DetailsOrBuilder
      Returns:
      The severity.
    • setSeverity

      public Details.Builder setSeverity(Severity value)
       Output only. The note provider assigned Severity of the vulnerability.
       
      .grafeas.v1beta1.vulnerability.Severity severity = 2;
      Parameters:
      value - The severity to set.
      Returns:
      This builder for chaining.
    • clearSeverity

      public Details.Builder clearSeverity()
       Output only. The note provider assigned Severity of the vulnerability.
       
      .grafeas.v1beta1.vulnerability.Severity severity = 2;
      Returns:
      This builder for chaining.
    • getCvssScore

      public float getCvssScore()
       Output only. The CVSS score of this vulnerability. CVSS score is on a
       scale of 0-10 where 0 indicates low severity and 10 indicates high
       severity.
       
      float cvss_score = 3;
      Specified by:
      getCvssScore in interface DetailsOrBuilder
      Returns:
      The cvssScore.
    • setCvssScore

      public Details.Builder setCvssScore(float value)
       Output only. The CVSS score of this vulnerability. CVSS score is on a
       scale of 0-10 where 0 indicates low severity and 10 indicates high
       severity.
       
      float cvss_score = 3;
      Parameters:
      value - The cvssScore to set.
      Returns:
      This builder for chaining.
    • clearCvssScore

      public Details.Builder clearCvssScore()
       Output only. The CVSS score of this vulnerability. CVSS score is on a
       scale of 0-10 where 0 indicates low severity and 10 indicates high
       severity.
       
      float cvss_score = 3;
      Returns:
      This builder for chaining.
    • getPackageIssueList

      public List<PackageIssue> getPackageIssueList()
       Required. The set of affected locations and their fixes (if available)
       within the associated resource.
       
      repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
      Specified by:
      getPackageIssueList in interface DetailsOrBuilder
    • getPackageIssueCount

      public int getPackageIssueCount()
       Required. The set of affected locations and their fixes (if available)
       within the associated resource.
       
      repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
      Specified by:
      getPackageIssueCount in interface DetailsOrBuilder
    • getPackageIssue

      public PackageIssue getPackageIssue(int index)
       Required. The set of affected locations and their fixes (if available)
       within the associated resource.
       
      repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
      Specified by:
      getPackageIssue in interface DetailsOrBuilder
    • setPackageIssue

      public Details.Builder setPackageIssue(int index, PackageIssue value)
       Required. The set of affected locations and their fixes (if available)
       within the associated resource.
       
      repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
    • setPackageIssue

      public Details.Builder setPackageIssue(int index, PackageIssue.Builder builderForValue)
       Required. The set of affected locations and their fixes (if available)
       within the associated resource.
       
      repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
    • addPackageIssue

      public Details.Builder addPackageIssue(PackageIssue value)
       Required. The set of affected locations and their fixes (if available)
       within the associated resource.
       
      repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
    • addPackageIssue

      public Details.Builder addPackageIssue(int index, PackageIssue value)
       Required. The set of affected locations and their fixes (if available)
       within the associated resource.
       
      repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
    • addPackageIssue

      public Details.Builder addPackageIssue(PackageIssue.Builder builderForValue)
       Required. The set of affected locations and their fixes (if available)
       within the associated resource.
       
      repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
    • addPackageIssue

      public Details.Builder addPackageIssue(int index, PackageIssue.Builder builderForValue)
       Required. The set of affected locations and their fixes (if available)
       within the associated resource.
       
      repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
    • addAllPackageIssue

      public Details.Builder addAllPackageIssue(Iterable<? extends PackageIssue> values)
       Required. The set of affected locations and their fixes (if available)
       within the associated resource.
       
      repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
    • clearPackageIssue

      public Details.Builder clearPackageIssue()
       Required. The set of affected locations and their fixes (if available)
       within the associated resource.
       
      repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
    • removePackageIssue

      public Details.Builder removePackageIssue(int index)
       Required. The set of affected locations and their fixes (if available)
       within the associated resource.
       
      repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
    • getPackageIssueBuilder

      public PackageIssue.Builder getPackageIssueBuilder(int index)
       Required. The set of affected locations and their fixes (if available)
       within the associated resource.
       
      repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
    • getPackageIssueOrBuilder

      public PackageIssueOrBuilder getPackageIssueOrBuilder(int index)
       Required. The set of affected locations and their fixes (if available)
       within the associated resource.
       
      repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
      Specified by:
      getPackageIssueOrBuilder in interface DetailsOrBuilder
    • getPackageIssueOrBuilderList

      public List<? extends PackageIssueOrBuilder> getPackageIssueOrBuilderList()
       Required. The set of affected locations and their fixes (if available)
       within the associated resource.
       
      repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
      Specified by:
      getPackageIssueOrBuilderList in interface DetailsOrBuilder
    • addPackageIssueBuilder

      public PackageIssue.Builder addPackageIssueBuilder()
       Required. The set of affected locations and their fixes (if available)
       within the associated resource.
       
      repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
    • addPackageIssueBuilder

      public PackageIssue.Builder addPackageIssueBuilder(int index)
       Required. The set of affected locations and their fixes (if available)
       within the associated resource.
       
      repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
    • getPackageIssueBuilderList

      public List<PackageIssue.Builder> getPackageIssueBuilderList()
       Required. The set of affected locations and their fixes (if available)
       within the associated resource.
       
      repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
    • getShortDescription

      public String getShortDescription()
       Output only. A one sentence description of this vulnerability.
       
      string short_description = 5;
      Specified by:
      getShortDescription in interface DetailsOrBuilder
      Returns:
      The shortDescription.
    • getShortDescriptionBytes

      public com.google.protobuf.ByteString getShortDescriptionBytes()
       Output only. A one sentence description of this vulnerability.
       
      string short_description = 5;
      Specified by:
      getShortDescriptionBytes in interface DetailsOrBuilder
      Returns:
      The bytes for shortDescription.
    • setShortDescription

      public Details.Builder setShortDescription(String value)
       Output only. A one sentence description of this vulnerability.
       
      string short_description = 5;
      Parameters:
      value - The shortDescription to set.
      Returns:
      This builder for chaining.
    • clearShortDescription

      public Details.Builder clearShortDescription()
       Output only. A one sentence description of this vulnerability.
       
      string short_description = 5;
      Returns:
      This builder for chaining.
    • setShortDescriptionBytes

      public Details.Builder setShortDescriptionBytes(com.google.protobuf.ByteString value)
       Output only. A one sentence description of this vulnerability.
       
      string short_description = 5;
      Parameters:
      value - The bytes for shortDescription to set.
      Returns:
      This builder for chaining.
    • getLongDescription

      public String getLongDescription()
       Output only. A detailed description of this vulnerability.
       
      string long_description = 6;
      Specified by:
      getLongDescription in interface DetailsOrBuilder
      Returns:
      The longDescription.
    • getLongDescriptionBytes

      public com.google.protobuf.ByteString getLongDescriptionBytes()
       Output only. A detailed description of this vulnerability.
       
      string long_description = 6;
      Specified by:
      getLongDescriptionBytes in interface DetailsOrBuilder
      Returns:
      The bytes for longDescription.
    • setLongDescription

      public Details.Builder setLongDescription(String value)
       Output only. A detailed description of this vulnerability.
       
      string long_description = 6;
      Parameters:
      value - The longDescription to set.
      Returns:
      This builder for chaining.
    • clearLongDescription

      public Details.Builder clearLongDescription()
       Output only. A detailed description of this vulnerability.
       
      string long_description = 6;
      Returns:
      This builder for chaining.
    • setLongDescriptionBytes

      public Details.Builder setLongDescriptionBytes(com.google.protobuf.ByteString value)
       Output only. A detailed description of this vulnerability.
       
      string long_description = 6;
      Parameters:
      value - The bytes for longDescription to set.
      Returns:
      This builder for chaining.
    • getRelatedUrlsList

      public List<RelatedUrl> getRelatedUrlsList()
       Output only. URLs related to this vulnerability.
       
      repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;
      Specified by:
      getRelatedUrlsList in interface DetailsOrBuilder
    • getRelatedUrlsCount

      public int getRelatedUrlsCount()
       Output only. URLs related to this vulnerability.
       
      repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;
      Specified by:
      getRelatedUrlsCount in interface DetailsOrBuilder
    • getRelatedUrls

      public RelatedUrl getRelatedUrls(int index)
       Output only. URLs related to this vulnerability.
       
      repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;
      Specified by:
      getRelatedUrls in interface DetailsOrBuilder
    • setRelatedUrls

      public Details.Builder setRelatedUrls(int index, RelatedUrl value)
       Output only. URLs related to this vulnerability.
       
      repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;
    • setRelatedUrls

      public Details.Builder setRelatedUrls(int index, RelatedUrl.Builder builderForValue)
       Output only. URLs related to this vulnerability.
       
      repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;
    • addRelatedUrls

      public Details.Builder addRelatedUrls(RelatedUrl value)
       Output only. URLs related to this vulnerability.
       
      repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;
    • addRelatedUrls

      public Details.Builder addRelatedUrls(int index, RelatedUrl value)
       Output only. URLs related to this vulnerability.
       
      repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;
    • addRelatedUrls

      public Details.Builder addRelatedUrls(RelatedUrl.Builder builderForValue)
       Output only. URLs related to this vulnerability.
       
      repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;
    • addRelatedUrls

      public Details.Builder addRelatedUrls(int index, RelatedUrl.Builder builderForValue)
       Output only. URLs related to this vulnerability.
       
      repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;
    • addAllRelatedUrls

      public Details.Builder addAllRelatedUrls(Iterable<? extends RelatedUrl> values)
       Output only. URLs related to this vulnerability.
       
      repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;
    • clearRelatedUrls

      public Details.Builder clearRelatedUrls()
       Output only. URLs related to this vulnerability.
       
      repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;
    • removeRelatedUrls

      public Details.Builder removeRelatedUrls(int index)
       Output only. URLs related to this vulnerability.
       
      repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;
    • getRelatedUrlsBuilder

      public RelatedUrl.Builder getRelatedUrlsBuilder(int index)
       Output only. URLs related to this vulnerability.
       
      repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;
    • getRelatedUrlsOrBuilder

      public RelatedUrlOrBuilder getRelatedUrlsOrBuilder(int index)
       Output only. URLs related to this vulnerability.
       
      repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;
      Specified by:
      getRelatedUrlsOrBuilder in interface DetailsOrBuilder
    • getRelatedUrlsOrBuilderList

      public List<? extends RelatedUrlOrBuilder> getRelatedUrlsOrBuilderList()
       Output only. URLs related to this vulnerability.
       
      repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;
      Specified by:
      getRelatedUrlsOrBuilderList in interface DetailsOrBuilder
    • addRelatedUrlsBuilder

      public RelatedUrl.Builder addRelatedUrlsBuilder()
       Output only. URLs related to this vulnerability.
       
      repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;
    • addRelatedUrlsBuilder

      public RelatedUrl.Builder addRelatedUrlsBuilder(int index)
       Output only. URLs related to this vulnerability.
       
      repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;
    • getRelatedUrlsBuilderList

      public List<RelatedUrl.Builder> getRelatedUrlsBuilderList()
       Output only. URLs related to this vulnerability.
       
      repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;
    • getEffectiveSeverityValue

      public int getEffectiveSeverityValue()
       The distro assigned severity for this vulnerability when it is
       available, and note provider assigned severity when distro has not yet
       assigned a severity for this vulnerability.
       
      .grafeas.v1beta1.vulnerability.Severity effective_severity = 8;
      Specified by:
      getEffectiveSeverityValue in interface DetailsOrBuilder
      Returns:
      The enum numeric value on the wire for effectiveSeverity.
    • setEffectiveSeverityValue

      public Details.Builder setEffectiveSeverityValue(int value)
       The distro assigned severity for this vulnerability when it is
       available, and note provider assigned severity when distro has not yet
       assigned a severity for this vulnerability.
       
      .grafeas.v1beta1.vulnerability.Severity effective_severity = 8;
      Parameters:
      value - The enum numeric value on the wire for effectiveSeverity to set.
      Returns:
      This builder for chaining.
    • getEffectiveSeverity

      public Severity getEffectiveSeverity()
       The distro assigned severity for this vulnerability when it is
       available, and note provider assigned severity when distro has not yet
       assigned a severity for this vulnerability.
       
      .grafeas.v1beta1.vulnerability.Severity effective_severity = 8;
      Specified by:
      getEffectiveSeverity in interface DetailsOrBuilder
      Returns:
      The effectiveSeverity.
    • setEffectiveSeverity

      public Details.Builder setEffectiveSeverity(Severity value)
       The distro assigned severity for this vulnerability when it is
       available, and note provider assigned severity when distro has not yet
       assigned a severity for this vulnerability.
       
      .grafeas.v1beta1.vulnerability.Severity effective_severity = 8;
      Parameters:
      value - The effectiveSeverity to set.
      Returns:
      This builder for chaining.
    • clearEffectiveSeverity

      public Details.Builder clearEffectiveSeverity()
       The distro assigned severity for this vulnerability when it is
       available, and note provider assigned severity when distro has not yet
       assigned a severity for this vulnerability.
       
      .grafeas.v1beta1.vulnerability.Severity effective_severity = 8;
      Returns:
      This builder for chaining.