Class Package.Builder

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

public static final class Package.Builder extends com.google.protobuf.GeneratedMessage.Builder<Package.Builder> implements PackageOrBuilder
 This represents a particular package that is distributed over various
 channels. E.g., glibc (aka libc6) is distributed by many, at various
 versions.
 
Protobuf type grafeas.v1beta1.package.Package
  • 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<Package.Builder>
    • clear

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

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

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

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

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

      public Package.Builder mergeFrom(Package other)
    • isInitialized

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

      public Package.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<Package.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. Immutable. The name of the package.
       
      string name = 1;
      Specified by:
      getName in interface PackageOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. Immutable. The name of the package.
       
      string name = 1;
      Specified by:
      getNameBytes in interface PackageOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Package.Builder setName(String value)
       Required. Immutable. The name of the package.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Package.Builder clearName()
       Required. Immutable. The name of the package.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Package.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. Immutable. The name of the package.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDistributionList

      public List<Distribution> getDistributionList()
       The various channels by which a package is distributed.
       
      repeated .grafeas.v1beta1.package.Distribution distribution = 10;
      Specified by:
      getDistributionList in interface PackageOrBuilder
    • getDistributionCount

      public int getDistributionCount()
       The various channels by which a package is distributed.
       
      repeated .grafeas.v1beta1.package.Distribution distribution = 10;
      Specified by:
      getDistributionCount in interface PackageOrBuilder
    • getDistribution

      public Distribution getDistribution(int index)
       The various channels by which a package is distributed.
       
      repeated .grafeas.v1beta1.package.Distribution distribution = 10;
      Specified by:
      getDistribution in interface PackageOrBuilder
    • setDistribution

      public Package.Builder setDistribution(int index, Distribution value)
       The various channels by which a package is distributed.
       
      repeated .grafeas.v1beta1.package.Distribution distribution = 10;
    • setDistribution

      public Package.Builder setDistribution(int index, Distribution.Builder builderForValue)
       The various channels by which a package is distributed.
       
      repeated .grafeas.v1beta1.package.Distribution distribution = 10;
    • addDistribution

      public Package.Builder addDistribution(Distribution value)
       The various channels by which a package is distributed.
       
      repeated .grafeas.v1beta1.package.Distribution distribution = 10;
    • addDistribution

      public Package.Builder addDistribution(int index, Distribution value)
       The various channels by which a package is distributed.
       
      repeated .grafeas.v1beta1.package.Distribution distribution = 10;
    • addDistribution

      public Package.Builder addDistribution(Distribution.Builder builderForValue)
       The various channels by which a package is distributed.
       
      repeated .grafeas.v1beta1.package.Distribution distribution = 10;
    • addDistribution

      public Package.Builder addDistribution(int index, Distribution.Builder builderForValue)
       The various channels by which a package is distributed.
       
      repeated .grafeas.v1beta1.package.Distribution distribution = 10;
    • addAllDistribution

      public Package.Builder addAllDistribution(Iterable<? extends Distribution> values)
       The various channels by which a package is distributed.
       
      repeated .grafeas.v1beta1.package.Distribution distribution = 10;
    • clearDistribution

      public Package.Builder clearDistribution()
       The various channels by which a package is distributed.
       
      repeated .grafeas.v1beta1.package.Distribution distribution = 10;
    • removeDistribution

      public Package.Builder removeDistribution(int index)
       The various channels by which a package is distributed.
       
      repeated .grafeas.v1beta1.package.Distribution distribution = 10;
    • getDistributionBuilder

      public Distribution.Builder getDistributionBuilder(int index)
       The various channels by which a package is distributed.
       
      repeated .grafeas.v1beta1.package.Distribution distribution = 10;
    • getDistributionOrBuilder

      public DistributionOrBuilder getDistributionOrBuilder(int index)
       The various channels by which a package is distributed.
       
      repeated .grafeas.v1beta1.package.Distribution distribution = 10;
      Specified by:
      getDistributionOrBuilder in interface PackageOrBuilder
    • getDistributionOrBuilderList

      public List<? extends DistributionOrBuilder> getDistributionOrBuilderList()
       The various channels by which a package is distributed.
       
      repeated .grafeas.v1beta1.package.Distribution distribution = 10;
      Specified by:
      getDistributionOrBuilderList in interface PackageOrBuilder
    • addDistributionBuilder

      public Distribution.Builder addDistributionBuilder()
       The various channels by which a package is distributed.
       
      repeated .grafeas.v1beta1.package.Distribution distribution = 10;
    • addDistributionBuilder

      public Distribution.Builder addDistributionBuilder(int index)
       The various channels by which a package is distributed.
       
      repeated .grafeas.v1beta1.package.Distribution distribution = 10;
    • getDistributionBuilderList

      public List<Distribution.Builder> getDistributionBuilderList()
       The various channels by which a package is distributed.
       
      repeated .grafeas.v1beta1.package.Distribution distribution = 10;