Class Distribution.Builder

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

public static final class Distribution.Builder extends com.google.protobuf.GeneratedMessage.Builder<Distribution.Builder> implements DistributionOrBuilder
 This represents a particular channel of distribution for a given package.
 E.g., Debian's jessie-backports dpkg mirror.
 
Protobuf type grafeas.v1beta1.package.Distribution
  • 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<Distribution.Builder>
    • clear

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

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

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

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

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

      public Distribution.Builder mergeFrom(Distribution other)
    • isInitialized

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

      public Distribution.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<Distribution.Builder>
      Throws:
      IOException
    • getCpeUri

      public String getCpeUri()
       Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
       denoting the package manager version distributing a package.
       
      string cpe_uri = 1;
      Specified by:
      getCpeUri in interface DistributionOrBuilder
      Returns:
      The cpeUri.
    • getCpeUriBytes

      public com.google.protobuf.ByteString getCpeUriBytes()
       Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
       denoting the package manager version distributing a package.
       
      string cpe_uri = 1;
      Specified by:
      getCpeUriBytes in interface DistributionOrBuilder
      Returns:
      The bytes for cpeUri.
    • setCpeUri

      public Distribution.Builder setCpeUri(String value)
       Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
       denoting the package manager version distributing a package.
       
      string cpe_uri = 1;
      Parameters:
      value - The cpeUri to set.
      Returns:
      This builder for chaining.
    • clearCpeUri

      public Distribution.Builder clearCpeUri()
       Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
       denoting the package manager version distributing a package.
       
      string cpe_uri = 1;
      Returns:
      This builder for chaining.
    • setCpeUriBytes

      public Distribution.Builder setCpeUriBytes(com.google.protobuf.ByteString value)
       Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
       denoting the package manager version distributing a package.
       
      string cpe_uri = 1;
      Parameters:
      value - The bytes for cpeUri to set.
      Returns:
      This builder for chaining.
    • getArchitectureValue

      public int getArchitectureValue()
       The CPU architecture for which packages in this distribution channel were
       built.
       
      .grafeas.v1beta1.package.Architecture architecture = 2;
      Specified by:
      getArchitectureValue in interface DistributionOrBuilder
      Returns:
      The enum numeric value on the wire for architecture.
    • setArchitectureValue

      public Distribution.Builder setArchitectureValue(int value)
       The CPU architecture for which packages in this distribution channel were
       built.
       
      .grafeas.v1beta1.package.Architecture architecture = 2;
      Parameters:
      value - The enum numeric value on the wire for architecture to set.
      Returns:
      This builder for chaining.
    • getArchitecture

      public Architecture getArchitecture()
       The CPU architecture for which packages in this distribution channel were
       built.
       
      .grafeas.v1beta1.package.Architecture architecture = 2;
      Specified by:
      getArchitecture in interface DistributionOrBuilder
      Returns:
      The architecture.
    • setArchitecture

      public Distribution.Builder setArchitecture(Architecture value)
       The CPU architecture for which packages in this distribution channel were
       built.
       
      .grafeas.v1beta1.package.Architecture architecture = 2;
      Parameters:
      value - The architecture to set.
      Returns:
      This builder for chaining.
    • clearArchitecture

      public Distribution.Builder clearArchitecture()
       The CPU architecture for which packages in this distribution channel were
       built.
       
      .grafeas.v1beta1.package.Architecture architecture = 2;
      Returns:
      This builder for chaining.
    • hasLatestVersion

      public boolean hasLatestVersion()
       The latest available version of this package in this distribution channel.
       
      .grafeas.v1beta1.package.Version latest_version = 3;
      Specified by:
      hasLatestVersion in interface DistributionOrBuilder
      Returns:
      Whether the latestVersion field is set.
    • getLatestVersion

      public Version getLatestVersion()
       The latest available version of this package in this distribution channel.
       
      .grafeas.v1beta1.package.Version latest_version = 3;
      Specified by:
      getLatestVersion in interface DistributionOrBuilder
      Returns:
      The latestVersion.
    • setLatestVersion

      public Distribution.Builder setLatestVersion(Version value)
       The latest available version of this package in this distribution channel.
       
      .grafeas.v1beta1.package.Version latest_version = 3;
    • setLatestVersion

      public Distribution.Builder setLatestVersion(Version.Builder builderForValue)
       The latest available version of this package in this distribution channel.
       
      .grafeas.v1beta1.package.Version latest_version = 3;
    • mergeLatestVersion

      public Distribution.Builder mergeLatestVersion(Version value)
       The latest available version of this package in this distribution channel.
       
      .grafeas.v1beta1.package.Version latest_version = 3;
    • clearLatestVersion

      public Distribution.Builder clearLatestVersion()
       The latest available version of this package in this distribution channel.
       
      .grafeas.v1beta1.package.Version latest_version = 3;
    • getLatestVersionBuilder

      public Version.Builder getLatestVersionBuilder()
       The latest available version of this package in this distribution channel.
       
      .grafeas.v1beta1.package.Version latest_version = 3;
    • getLatestVersionOrBuilder

      public VersionOrBuilder getLatestVersionOrBuilder()
       The latest available version of this package in this distribution channel.
       
      .grafeas.v1beta1.package.Version latest_version = 3;
      Specified by:
      getLatestVersionOrBuilder in interface DistributionOrBuilder
    • getMaintainer

      public String getMaintainer()
       A freeform string denoting the maintainer of this package.
       
      string maintainer = 4;
      Specified by:
      getMaintainer in interface DistributionOrBuilder
      Returns:
      The maintainer.
    • getMaintainerBytes

      public com.google.protobuf.ByteString getMaintainerBytes()
       A freeform string denoting the maintainer of this package.
       
      string maintainer = 4;
      Specified by:
      getMaintainerBytes in interface DistributionOrBuilder
      Returns:
      The bytes for maintainer.
    • setMaintainer

      public Distribution.Builder setMaintainer(String value)
       A freeform string denoting the maintainer of this package.
       
      string maintainer = 4;
      Parameters:
      value - The maintainer to set.
      Returns:
      This builder for chaining.
    • clearMaintainer

      public Distribution.Builder clearMaintainer()
       A freeform string denoting the maintainer of this package.
       
      string maintainer = 4;
      Returns:
      This builder for chaining.
    • setMaintainerBytes

      public Distribution.Builder setMaintainerBytes(com.google.protobuf.ByteString value)
       A freeform string denoting the maintainer of this package.
       
      string maintainer = 4;
      Parameters:
      value - The bytes for maintainer to set.
      Returns:
      This builder for chaining.
    • getUrl

      public String getUrl()
       The distribution channel-specific homepage for this package.
       
      string url = 5;
      Specified by:
      getUrl in interface DistributionOrBuilder
      Returns:
      The url.
    • getUrlBytes

      public com.google.protobuf.ByteString getUrlBytes()
       The distribution channel-specific homepage for this package.
       
      string url = 5;
      Specified by:
      getUrlBytes in interface DistributionOrBuilder
      Returns:
      The bytes for url.
    • setUrl

      public Distribution.Builder setUrl(String value)
       The distribution channel-specific homepage for this package.
       
      string url = 5;
      Parameters:
      value - The url to set.
      Returns:
      This builder for chaining.
    • clearUrl

      public Distribution.Builder clearUrl()
       The distribution channel-specific homepage for this package.
       
      string url = 5;
      Returns:
      This builder for chaining.
    • setUrlBytes

      public Distribution.Builder setUrlBytes(com.google.protobuf.ByteString value)
       The distribution channel-specific homepage for this package.
       
      string url = 5;
      Parameters:
      value - The bytes for url to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       The distribution channel-specific description of this package.
       
      string description = 6;
      Specified by:
      getDescription in interface DistributionOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       The distribution channel-specific description of this package.
       
      string description = 6;
      Specified by:
      getDescriptionBytes in interface DistributionOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Distribution.Builder setDescription(String value)
       The distribution channel-specific description of this package.
       
      string description = 6;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Distribution.Builder clearDescription()
       The distribution channel-specific description of this package.
       
      string description = 6;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Distribution.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       The distribution channel-specific description of this package.
       
      string description = 6;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.