Class Build.PackageGroup.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Build.PackageGroup.Builder>
com.google.devtools.build.lib.query2.proto.proto2api.Build.PackageGroup.Builder
All Implemented Interfaces:
Build.PackageGroupOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Build.PackageGroup

public static final class Build.PackageGroup.Builder extends com.google.protobuf.GeneratedMessage.Builder<Build.PackageGroup.Builder> implements Build.PackageGroupOrBuilder
 A package group. Aside from the name, it contains the list of packages
 present in the group (as specified in the BUILD file).
 
Protobuf type blaze_query.PackageGroup
  • 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<Build.PackageGroup.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<Build.PackageGroup.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<Build.PackageGroup.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Build.PackageGroup.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<Build.PackageGroup.Builder>
      Throws:
      IOException
    • hasName

      public boolean hasName()
       The name of the package group
       
      required string name = 1;
      Specified by:
      hasName in interface Build.PackageGroupOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       The name of the package group
       
      required string name = 1;
      Specified by:
      getName in interface Build.PackageGroupOrBuilder
      Returns:
      The name.
    • getNameBytes

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

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

      public Build.PackageGroup.Builder clearName()
       The name of the package group
       
      required string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Build.PackageGroup.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the package group
       
      required string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getContainedPackageList

      public com.google.protobuf.ProtocolStringList getContainedPackageList()
       The list of packages as specified in the BUILD file. Currently this is
       only a list of packages, but some time in the future, there might be
       some type of wildcard mechanism.
       
      repeated string contained_package = 2;
      Specified by:
      getContainedPackageList in interface Build.PackageGroupOrBuilder
      Returns:
      A list containing the containedPackage.
    • getContainedPackageCount

      public int getContainedPackageCount()
       The list of packages as specified in the BUILD file. Currently this is
       only a list of packages, but some time in the future, there might be
       some type of wildcard mechanism.
       
      repeated string contained_package = 2;
      Specified by:
      getContainedPackageCount in interface Build.PackageGroupOrBuilder
      Returns:
      The count of containedPackage.
    • getContainedPackage

      public String getContainedPackage(int index)
       The list of packages as specified in the BUILD file. Currently this is
       only a list of packages, but some time in the future, there might be
       some type of wildcard mechanism.
       
      repeated string contained_package = 2;
      Specified by:
      getContainedPackage in interface Build.PackageGroupOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The containedPackage at the given index.
    • getContainedPackageBytes

      public com.google.protobuf.ByteString getContainedPackageBytes(int index)
       The list of packages as specified in the BUILD file. Currently this is
       only a list of packages, but some time in the future, there might be
       some type of wildcard mechanism.
       
      repeated string contained_package = 2;
      Specified by:
      getContainedPackageBytes in interface Build.PackageGroupOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the containedPackage at the given index.
    • setContainedPackage

      public Build.PackageGroup.Builder setContainedPackage(int index, String value)
       The list of packages as specified in the BUILD file. Currently this is
       only a list of packages, but some time in the future, there might be
       some type of wildcard mechanism.
       
      repeated string contained_package = 2;
      Parameters:
      index - The index to set the value at.
      value - The containedPackage to set.
      Returns:
      This builder for chaining.
    • addContainedPackage

      public Build.PackageGroup.Builder addContainedPackage(String value)
       The list of packages as specified in the BUILD file. Currently this is
       only a list of packages, but some time in the future, there might be
       some type of wildcard mechanism.
       
      repeated string contained_package = 2;
      Parameters:
      value - The containedPackage to add.
      Returns:
      This builder for chaining.
    • addAllContainedPackage

      public Build.PackageGroup.Builder addAllContainedPackage(Iterable<String> values)
       The list of packages as specified in the BUILD file. Currently this is
       only a list of packages, but some time in the future, there might be
       some type of wildcard mechanism.
       
      repeated string contained_package = 2;
      Parameters:
      values - The containedPackage to add.
      Returns:
      This builder for chaining.
    • clearContainedPackage

      public Build.PackageGroup.Builder clearContainedPackage()
       The list of packages as specified in the BUILD file. Currently this is
       only a list of packages, but some time in the future, there might be
       some type of wildcard mechanism.
       
      repeated string contained_package = 2;
      Returns:
      This builder for chaining.
    • addContainedPackageBytes

      public Build.PackageGroup.Builder addContainedPackageBytes(com.google.protobuf.ByteString value)
       The list of packages as specified in the BUILD file. Currently this is
       only a list of packages, but some time in the future, there might be
       some type of wildcard mechanism.
       
      repeated string contained_package = 2;
      Parameters:
      value - The bytes of the containedPackage to add.
      Returns:
      This builder for chaining.
    • getIncludedPackageGroupList

      public com.google.protobuf.ProtocolStringList getIncludedPackageGroupList()
       The list of sub package groups included in this one.
       
      repeated string included_package_group = 3;
      Specified by:
      getIncludedPackageGroupList in interface Build.PackageGroupOrBuilder
      Returns:
      A list containing the includedPackageGroup.
    • getIncludedPackageGroupCount

      public int getIncludedPackageGroupCount()
       The list of sub package groups included in this one.
       
      repeated string included_package_group = 3;
      Specified by:
      getIncludedPackageGroupCount in interface Build.PackageGroupOrBuilder
      Returns:
      The count of includedPackageGroup.
    • getIncludedPackageGroup

      public String getIncludedPackageGroup(int index)
       The list of sub package groups included in this one.
       
      repeated string included_package_group = 3;
      Specified by:
      getIncludedPackageGroup in interface Build.PackageGroupOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The includedPackageGroup at the given index.
    • getIncludedPackageGroupBytes

      public com.google.protobuf.ByteString getIncludedPackageGroupBytes(int index)
       The list of sub package groups included in this one.
       
      repeated string included_package_group = 3;
      Specified by:
      getIncludedPackageGroupBytes in interface Build.PackageGroupOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the includedPackageGroup at the given index.
    • setIncludedPackageGroup

      public Build.PackageGroup.Builder setIncludedPackageGroup(int index, String value)
       The list of sub package groups included in this one.
       
      repeated string included_package_group = 3;
      Parameters:
      index - The index to set the value at.
      value - The includedPackageGroup to set.
      Returns:
      This builder for chaining.
    • addIncludedPackageGroup

      public Build.PackageGroup.Builder addIncludedPackageGroup(String value)
       The list of sub package groups included in this one.
       
      repeated string included_package_group = 3;
      Parameters:
      value - The includedPackageGroup to add.
      Returns:
      This builder for chaining.
    • addAllIncludedPackageGroup

      public Build.PackageGroup.Builder addAllIncludedPackageGroup(Iterable<String> values)
       The list of sub package groups included in this one.
       
      repeated string included_package_group = 3;
      Parameters:
      values - The includedPackageGroup to add.
      Returns:
      This builder for chaining.
    • clearIncludedPackageGroup

      public Build.PackageGroup.Builder clearIncludedPackageGroup()
       The list of sub package groups included in this one.
       
      repeated string included_package_group = 3;
      Returns:
      This builder for chaining.
    • addIncludedPackageGroupBytes

      public Build.PackageGroup.Builder addIncludedPackageGroupBytes(com.google.protobuf.ByteString value)
       The list of sub package groups included in this one.
       
      repeated string included_package_group = 3;
      Parameters:
      value - The bytes of the includedPackageGroup to add.
      Returns:
      This builder for chaining.