Class PackagesSummaryResponse.LicensesSummary.Builder

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

public static final class PackagesSummaryResponse.LicensesSummary.Builder extends com.google.protobuf.GeneratedMessage.Builder<PackagesSummaryResponse.LicensesSummary.Builder> implements PackagesSummaryResponse.LicensesSummaryOrBuilder
 Per license count
 
Protobuf type google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary
  • 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.LicensesSummary.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.LicensesSummary.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.LicensesSummary.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

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

      public String getLicense()
       The license of the package. Note that the format of this value is not
       guaranteed. It may be nil, an empty string, a boolean value (A | B), a
       differently formed boolean value (A OR B), etc...
       
      string license = 1;
      Specified by:
      getLicense in interface PackagesSummaryResponse.LicensesSummaryOrBuilder
      Returns:
      The license.
    • getLicenseBytes

      public com.google.protobuf.ByteString getLicenseBytes()
       The license of the package. Note that the format of this value is not
       guaranteed. It may be nil, an empty string, a boolean value (A | B), a
       differently formed boolean value (A OR B), etc...
       
      string license = 1;
      Specified by:
      getLicenseBytes in interface PackagesSummaryResponse.LicensesSummaryOrBuilder
      Returns:
      The bytes for license.
    • setLicense

       The license of the package. Note that the format of this value is not
       guaranteed. It may be nil, an empty string, a boolean value (A | B), a
       differently formed boolean value (A OR B), etc...
       
      string license = 1;
      Parameters:
      value - The license to set.
      Returns:
      This builder for chaining.
    • clearLicense

       The license of the package. Note that the format of this value is not
       guaranteed. It may be nil, an empty string, a boolean value (A | B), a
       differently formed boolean value (A OR B), etc...
       
      string license = 1;
      Returns:
      This builder for chaining.
    • setLicenseBytes

      public PackagesSummaryResponse.LicensesSummary.Builder setLicenseBytes(com.google.protobuf.ByteString value)
       The license of the package. Note that the format of this value is not
       guaranteed. It may be nil, an empty string, a boolean value (A | B), a
       differently formed boolean value (A OR B), etc...
       
      string license = 1;
      Parameters:
      value - The bytes for license to set.
      Returns:
      This builder for chaining.
    • getCount

      public long getCount()
       The number of fixable vulnerabilities associated with this resource.
       
      int64 count = 2;
      Specified by:
      getCount in interface PackagesSummaryResponse.LicensesSummaryOrBuilder
      Returns:
      The count.
    • setCount

       The number of fixable vulnerabilities associated with this resource.
       
      int64 count = 2;
      Parameters:
      value - The count to set.
      Returns:
      This builder for chaining.
    • clearCount

       The number of fixable vulnerabilities associated with this resource.
       
      int64 count = 2;
      Returns:
      This builder for chaining.