Class PackagesSummaryResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PackagesSummaryResponse.Builder>
com.google.containeranalysis.v1beta1.PackagesSummaryResponse.Builder
All Implemented Interfaces:
PackagesSummaryResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PackagesSummaryResponse

public static final class PackagesSummaryResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<PackagesSummaryResponse.Builder> implements PackagesSummaryResponseOrBuilder
 A summary of the packages found within the given resource.
 
Protobuf type google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse
  • 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<PackagesSummaryResponse.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<PackagesSummaryResponse.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<PackagesSummaryResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public PackagesSummaryResponse.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<PackagesSummaryResponse.Builder>
      Throws:
      IOException
    • getResourceUrl

      public String getResourceUrl()
       The unique URL of the image or the container for which this summary
       applies.
       
      string resource_url = 1;
      Specified by:
      getResourceUrl in interface PackagesSummaryResponseOrBuilder
      Returns:
      The resourceUrl.
    • getResourceUrlBytes

      public com.google.protobuf.ByteString getResourceUrlBytes()
       The unique URL of the image or the container for which this summary
       applies.
       
      string resource_url = 1;
      Specified by:
      getResourceUrlBytes in interface PackagesSummaryResponseOrBuilder
      Returns:
      The bytes for resourceUrl.
    • setResourceUrl

      public PackagesSummaryResponse.Builder setResourceUrl(String value)
       The unique URL of the image or the container for which this summary
       applies.
       
      string resource_url = 1;
      Parameters:
      value - The resourceUrl to set.
      Returns:
      This builder for chaining.
    • clearResourceUrl

      public PackagesSummaryResponse.Builder clearResourceUrl()
       The unique URL of the image or the container for which this summary
       applies.
       
      string resource_url = 1;
      Returns:
      This builder for chaining.
    • setResourceUrlBytes

      public PackagesSummaryResponse.Builder setResourceUrlBytes(com.google.protobuf.ByteString value)
       The unique URL of the image or the container for which this summary
       applies.
       
      string resource_url = 1;
      Parameters:
      value - The bytes for resourceUrl to set.
      Returns:
      This builder for chaining.
    • getLicensesSummaryList

      public List<PackagesSummaryResponse.LicensesSummary> getLicensesSummaryList()
       A listing by license name of each of the licenses and their counts.
       
      repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;
      Specified by:
      getLicensesSummaryList in interface PackagesSummaryResponseOrBuilder
    • getLicensesSummaryCount

      public int getLicensesSummaryCount()
       A listing by license name of each of the licenses and their counts.
       
      repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;
      Specified by:
      getLicensesSummaryCount in interface PackagesSummaryResponseOrBuilder
    • getLicensesSummary

      public PackagesSummaryResponse.LicensesSummary getLicensesSummary(int index)
       A listing by license name of each of the licenses and their counts.
       
      repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;
      Specified by:
      getLicensesSummary in interface PackagesSummaryResponseOrBuilder
    • setLicensesSummary

      public PackagesSummaryResponse.Builder setLicensesSummary(int index, PackagesSummaryResponse.LicensesSummary value)
       A listing by license name of each of the licenses and their counts.
       
      repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;
    • setLicensesSummary

      public PackagesSummaryResponse.Builder setLicensesSummary(int index, PackagesSummaryResponse.LicensesSummary.Builder builderForValue)
       A listing by license name of each of the licenses and their counts.
       
      repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;
    • addLicensesSummary

       A listing by license name of each of the licenses and their counts.
       
      repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;
    • addLicensesSummary

      public PackagesSummaryResponse.Builder addLicensesSummary(int index, PackagesSummaryResponse.LicensesSummary value)
       A listing by license name of each of the licenses and their counts.
       
      repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;
    • addLicensesSummary

       A listing by license name of each of the licenses and their counts.
       
      repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;
    • addLicensesSummary

      public PackagesSummaryResponse.Builder addLicensesSummary(int index, PackagesSummaryResponse.LicensesSummary.Builder builderForValue)
       A listing by license name of each of the licenses and their counts.
       
      repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;
    • addAllLicensesSummary

      public PackagesSummaryResponse.Builder addAllLicensesSummary(Iterable<? extends PackagesSummaryResponse.LicensesSummary> values)
       A listing by license name of each of the licenses and their counts.
       
      repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;
    • clearLicensesSummary

      public PackagesSummaryResponse.Builder clearLicensesSummary()
       A listing by license name of each of the licenses and their counts.
       
      repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;
    • removeLicensesSummary

      public PackagesSummaryResponse.Builder removeLicensesSummary(int index)
       A listing by license name of each of the licenses and their counts.
       
      repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;
    • getLicensesSummaryBuilder

      public PackagesSummaryResponse.LicensesSummary.Builder getLicensesSummaryBuilder(int index)
       A listing by license name of each of the licenses and their counts.
       
      repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;
    • getLicensesSummaryOrBuilder

      public PackagesSummaryResponse.LicensesSummaryOrBuilder getLicensesSummaryOrBuilder(int index)
       A listing by license name of each of the licenses and their counts.
       
      repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;
      Specified by:
      getLicensesSummaryOrBuilder in interface PackagesSummaryResponseOrBuilder
    • getLicensesSummaryOrBuilderList

      public List<? extends PackagesSummaryResponse.LicensesSummaryOrBuilder> getLicensesSummaryOrBuilderList()
       A listing by license name of each of the licenses and their counts.
       
      repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;
      Specified by:
      getLicensesSummaryOrBuilderList in interface PackagesSummaryResponseOrBuilder
    • addLicensesSummaryBuilder

      public PackagesSummaryResponse.LicensesSummary.Builder addLicensesSummaryBuilder()
       A listing by license name of each of the licenses and their counts.
       
      repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;
    • addLicensesSummaryBuilder

      public PackagesSummaryResponse.LicensesSummary.Builder addLicensesSummaryBuilder(int index)
       A listing by license name of each of the licenses and their counts.
       
      repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;
    • getLicensesSummaryBuilderList

      public List<PackagesSummaryResponse.LicensesSummary.Builder> getLicensesSummaryBuilderList()
       A listing by license name of each of the licenses and their counts.
       
      repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;